LibreOffice can't open files with spaces in the name

Hi, so I recently installed LibreOffice (from extra) over go-OO. I know the site says it's not for production use but I have heard good things about the stability of the current version so I decided to see if it was in a usable state. In general things are going great, but I do have the problem mentioned in the thread title. The program has trouble parsing the spaces, and instead I am trying to open each space-delimited section of the filename as a separate file. Trying to open "My File.odt", for example, will simply return two error messages, one about "path/to/current/directory/My" not existing, and another about "path/to/current/directory/File.odt" not existing. I can't seem to get around this behaviour and, surprisingly, I can't find anything on it by Googling.
I know that LO is in beta and this may just be a bug that is being worked on, but since I can only find one reference to it on the net I thought that maybe others were not having this problem or had found a way around it.  Can anyone provide any insight? Cheers!

vimex wrote:
comment these lines in /usr/lib/ooo-3.3/program/soffice
the $* has some problem, but I do not know how to correct this...
# Setup our app as oosplash, but try to avoid executing pagein,
# and other expensive environment setup pieces wherever possible
# for a second started office
#if [ "$sd_binary" = "soffice.bin" -a -x "$sd_prog/oosplash.bin" ] && [ "$no_oosplash" != "y" ] ; then
#    sd_binary="oosplash.bin"
#    export QSTART_CHECK_ONLY=1
#    if "$sd_prog/$sd_binary" $*; then
#   exit 0
#    fi
#    unset QSTART_CHECK_ONLY
#fi
I noticed that commenting out that code allows LibreOffice to open spaced filenames, but seems to slightly increase startup time.
I tried replacing $* with "$*", and opening from the command line seems to work even for files with spaced names, with the faster startup time too. The only problem is that now LO does not work at all by clicking; only from command line.

Similar Messages

  • Process.start("winword", filename) can not open file with space in the path and name

    Hi,
    I am trying to write a class which can open file with selected application. for simplicity, now I just hard code the varaibles.
    the problem: if the path or file name has space in it, even it exist, winword still can not open it.
    could someone kindly show me what I did wrong and how to do it properly.
    Thanks in advance.
    Belinda
    public static class FileOpen
    public static void info()
    string path = @"c:\a temp folder\aaa 1.txt";
    if (File.Exists(path))
        // the file I am using in the sample does exist
         MsgBox.info("yes");
    else
         MsgBox.info("no");
    // working
    //Process.Start("winword", "c:\\aaa.txt");
    // not working
    //Process.Start("winword", "c:\aaa.txt");
    // not working
    Process.Start("winword", "c:\\a temp folder\\aaa 1.txt");
    // not working
    Process.Start("winword", path);

    string AppPath;
    AppPath = ReadRegistry(Registry.CurrentUser, "Software\\FabricStudio", "TARGETDIR", value).ToString() + @"help";
    string FileName = "'"+ AppPath + "\\ImageSamples.doc" + "'";
    try
    System.Diagnostics.Process.Start("Winword.exe", FileName);
    can any body please help for this.
    where i am making mistake?

  • [SOLVED]Audacious can't open files with spaces on name

    I open audacious
    Type Ctrl+o and select a directory with spaces on it names,
    Audacious opens nothing
    Any ideas?
    I have deep trees of music with spaces, I was working on a script to rename one by one, but I'm too lazy
    Cheers
    Last edited by geckos (2014-01-29 21:32:33)

    Here is my solution, I did this for every error that apears like that...
    [geckos@localhost ~]$ audacious
    (bootstrap.c:60) [mowgli_init]: mowgli_init() is a deprecated function, provided only for backwards compatibility with Mowgli-1. You should remove it if you no longer support using Mowgli-1.
    *** ERROR: /usr/lib/audacious/Input/cdaudio-ng.so could not be loaded: libcdio_cdda.so.1: cannot open shared object file: No such file or directory
    ^C[geckos@localhost ~]$
    [geckos@localhost ~]$ pkgfile -r '.*/libcdio_cdda.so.1'
    extra/libcdio-paranoia
    [geckos@localhost ~]$ sudo pacman -Syu libcdio-paranoia
    :: Synchronizing package databases...
    (3/3) installing libcdio-paranoia [###########################################] 100%
    [geckos@localhost ~]$
    [geckos@localhost ~]$

  • Can't email files with spaces in the file name since 10.5.2 upgrade

    Not sure if this is a bug with Leopard or I'm being stupid (possibly the later) but... Has anyone else experienced this issue and do you know what is causing it? I am currently unable to send a file that has a space in the file name. The only change on my system that has occurred since I last sent and email in a similar way is I've updated my OS from 10.5.1 to 10.5.2. Any ideas how to fix it?

    Sorted. Well sort of. I still have the problem but I know why. Apparently O2 will not allow anyone to send an attachment which has a space in the name. They claim that this reduces spam - no idea why they think that will stop spam but there you go...

  • Mplayer can't play files with spaces in their name

    After scratching my head and reinstalling codecs several times without luck, and old memory resurfaced of this occuring before and I managed to solve the problem.
    The thing is that if you doubleclick a file in Nautilus, and said files has spaces in its name, mplayer won't be able to play it, and gives a very cryptic error message, ie "cannot play file a%20b.avi" if the name of the file is "a b.avi".
    The trick is mentioned in this thread -- you edit /usr/share/applications/mplayer.desktop and change 'Exec=gmplayer %U' to 'Exec=gmplayer %F'.
    The bug has been around forever, and hasn't been fixed yet. Perhaps the mplayer devs don't want to fix it. In any case, I would propose that either we fix this in the mplayer Arch package, or that someone more knowledgeable than I get in touch with the devs about it.
    Just a suggestion, but I think it's kind of important. It's really confusing to new users.

    In my opinion, it it's not arch's job to fix bugs from upstream, no matter if it's mplayer or gnome's fault. Of course there are exceptions, eg if a bug in a critical package hardlocks the whole system, or adds a huge security risk.
    I would like to belive that the general arch user is smart enough to find one of the 30 threads about this bug (or the entry on the bugtracker) and fix it themselves. Personaly I would put this in the same category as packages that don't have a .desktop file at all from upstream.
    Oh, and as a small sidenote: http://phraktured.net/patching-patching-patching.html

  • How move file with space in the name to another foler on Linux from ABAP?

    Hi experts,
    My requirement is to move the file on Linux to another folder via ABAP program.
    IN SM49 is defined ZMOVE command for "mv" operating system command. In ABAP, fm:
    SXPG_COMMAND_EXECUTE calls ZMOVE external command to move the file to another folder.
    But in case that file has space in the file name, then the fm gives error and the file can not be moved.
    I have tried as given in the Note 1152084 - Parameter for external commands but it doesn't work.
    Don't know if the reason is that the note is for Windows or Unix and we have Linux.
    So, I have tried with ''%file name%' and '''file name'''.
    PLease advice hoe to move file on Linux to another folder from ABAP program if the file has spec in the name.
    Thanks in advance.
    Kind regards,
    Danijela Zivanovic

    Hi,
    You can also try :
    mv "file\ name" /<path_to_new_dir>
    (Put "\" before each space)
    Regards.
    Rajesh Narkhede

  • Programmatic launch of reader 11.0.3 won't open file with spaces in the path?

    The application I work on uses a PDF file for online help.  We programmatically launch the help file into the user's PDF viewer.  The path to the help file may have spaces in the directory names or filename.  With previous versions of Adobe Reader, it would launch just fine (path passed in on the command line).  However, with 11.0.3, I find that if I don't include an extra set of quotation marks around the path, it fails to open when there are spaces in the directory name.  What changed between then and now to cause this problem?  If I add extra quotation marks, will users with an older version of Reader not be able to open the file?
    Edit -- running in Windows 7, launched from C# .NET 3.5.

    benten2000 wrote:
    Install is fine and the icon is shown on the desktop and pdf files icons also change to Acrobat.
    I seem to have missed this part when reading your original post.  See if anything in this article fixes your problem: http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html

  • Can't open files with spaces from gui applications

    When I try to open a file or directory from say qbittorrent or clementine in xfce, I get the message:
    "Failed to open URI "file:///somewhere/filename%20with%20spaces".
    Googling told me this problem was due to passing a "%U" instead of a "%F" somwhere, but I don't know where to change this.

    I don't use any DE or those kinds of gui tools, but the "%U" instead of an "%F" issue would be in the .desktop files.  There are systemwide .desktop files in /usr/share/applications/ and you can override these with your own customized versions in ~/.local/share/applications/
    So a workaround at least would be to copy the relevant desktop files from the system-wide folder to your user's folder and edit them appropriately changing %U to%F.

  • Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path

    Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path using any of these perfectly normal methods:
    1. double-click file in the Finder (e.g in a Folder on your Mac or on your Mac desktop etc.)
    2. select file and choose "File... Open" command-o in the Finder
    3. drag file to the application icon in the Finder.
    4. Select file in Bridge and double-click, choose File.. Open.. or Drag icon to InDesign icon in dock.
    If you try to open an ID file named with a "#", you will get an error message "Missing required parameter 'from' for event 'open.'"
    This happens to any InDesign file that has a "#" (pound sign, number sign, or hash) in the filename or in the file path (any parent folder).
    To reproduce
    Name an InDesign file Test#.idd Try to open it in the Finder or Bridge (as opposed to the "Open" dilaog of InDeisng itself).
    "Solution"
    The file WILL open using File... Open... command-o while in InDesign application.
    Rename the file or folders that have a "#" (shift-3) in the filename.
    Report to Adobe if it bugs you.
    This does not occur in "plain" Leopard 10.5 nor Tiger 10.4
    Untested in Panther or before and
    Untested with CS3 and earlier in Snow Leaopard.
    Anyone have those and want to try this... ?

    In case this really bothers you: we've added a workaround for this into Soxy. If you enable the option, these documents will open fine on double-click.
    You need Soxy 1.0.7 from:
    http://www.rorohiko.com/soxy
    Go to the 'Soxy' - 'Preferences' - 'Other' dialog window, and enable 'Open InDesign via Script'
    (Irrelevant background info (it's all invisible to the user): the workaround works by special-casing how Soxy opens documents in InDesign: instead of using AppleScript, Soxy will use ExtendScript to instruct InDesign to open the document - which works fine).

  • My trackpad can't open file with double click

    i don't know what's going on, but my trackpad can't open file with double click. i have to open it with right click, open or open with. i've tried to fix it in the system preferences, it didn't work out well.

    William - you are wonderful!  I had looked at that - they were set to 'internal' which seemed like RH...but selecting the 'design view' and then reselecting 'use default editor' instead of 'auto-select editor' did it.  THANK YOU!!!!!

  • Can't open a file with spaces on the filename.

    Lets say I have a file:
    /home/orv/Open - Me - Please.txt
    When I double click to open that file with any program, the result is something like this:
    "Unable to find /home/orv/Open%20-%20Me%20-%20Please.txt"
    I'm not sure what to call that process of converting the file name so I've been unable to google it up to find a fix or a way to change the behavior of the file manager.
    I've checked the settings in Nautilus and nothings there. Any clues? Thank you!
    Last edited by orv (2007-12-14 23:11:59)

    I tried removing everything in my home directory to erase all settings, still the same problem.
    I tried using a different file manager and still the same problem.
    Here's another example of my problem and its quirks:
    Lets say I have a file called:
    /home/orv/I am a Movie.avi
    In nautilus or thunar, double-clicking that file so I can play it with Mplayer will give an error:
    Failed to open file:///home/orv/I%20am%20a%20Movie.avi
    However, when I drag and drop using the file manager into Mplayer, it works.
    So my problem is this automatic conversion of whitespaces into the %20 which I don't know how to turn off.

  • Can´t open files with camera raw

    Hi!
    I use Adobe Photoshop CS3 and the option to open files with Camera Raw is disabled in Bridge and in PS.
    Can anyone help?

    While each situation can be different this has been discussed on several threads. Scan down the list or do a search. If you can't find the answer, post a note.

  • Adobe Illustrator CC can't open files with "cmd O"

    After Adobe Illustrator CC update unable to open files with "cmd O" while CS6 works perfectly.

    Moving the discussion to Illustrator.
    Thanks,
    Atul Saini

  • Can't open files with PSE 10

    When I try to open a file with PSE 10, the app doesn't respond. I have owned PSE 10 for less than a month, and Adobe's support is impossible to access.

    I am using XP SP3. I try to open any NEF file with PSE 10. There is no error message. The file doesn't open, and when I use Task Manager, PSE is shown as not responding.PSE works sporadically but not at the moment. There is another problem that may or may not be associated with this. When I try to rename some (but not all) files, I get a message that the file is in use by another program. This happens when no programs are active, and nothing shows in Task Manager.

  • Unable to access files with spaces in the path

    Hi all, I am accessing files which reside on the server using a java applet.
    The typical path of a file could be:
    http://192.168.0.2/agat/data/AF190701 0003.agt
    (not the space in the filename).
    When I try to open this file using a URL object:
    URL file = new URL(filename);
    BufferedReader in = new BufferedReader(new InputStreamReader(file.openStream()));
    I get exception 400 ( I think) whihc I assume is file cant be found.
    However when I rename the file (to get rid of that space) and also change the filename variable to suit. The file is opened as expected.
    What should I do to make the applet able to open paths with spaces? Or is this just not possible.
    I did try including quotes with the special characte precessor:
    filename = "/"http://192.168.0.2/agat/data/AF190701 0003.agt/""
    But this didnt work either, please could someone tell what I need.
    Thanks.

    Thanks guys, although before I got your replies I did the following - it seems to work, but shall try your suggestions.
    while (file.lastIndexOf(" ") >0)
    String temp;
    int num = file.lastIndexOf(" ");
    temp = file.substring(0, num) + "%20" + file.substring(num+1, file.length());
    file = temp;
    }

Maybe you are looking for

  • JTextField not displaying correctly

    I have a JPanel done using Swing. I have JTextFields on the panel. I am having a problem with the text fields doing all of the following: 1. erasing the text that was populated into the fields when you click on them to edit 2. erasing the first chara

  • SQL QUERY IN JSP PAGE

    Dear Friends, There is a table named as EXPENSES having fields as sl_no, name. I want to find the MAXIMUM value of the sl_no. For that i am using the query as " SELECT MAX(sl_no) FROM EXPENSES " In JSP file my code is ...................... ResultSet

  • How can I use the system clock.

    My java program need to use the system clock to initiate some functions. Is there a method to do this or do I need to create one ?? Any help appreciated.

  • FIOS internet modem noise

    My modem, affixed to the wall, issues a high pitched squaling sound during late night (12:00 PM to $:00 AM).  Detaching the router makes no difference.  The noise makes sleepn in that room impossible.

  • Missing third-party components:  Which ones?

    Upon opening an old CS6 project in Premiere CC, I got this warning message.  It would be fantastic if this warning could specify which components are missing, so I can decide whether it's important or not.  As of now, this warning is mostly useless.