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.

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?

  • 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.

  • [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 ~]$

  • 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 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

  • [Bug] ADE can't open files with & in Booktitle

    I have bought some books, apparently generated with a program called "Papyrus Author". Most of them can opened with ADE, but some not.
    The Books which can not open in ADE have a Title with a "&" in it like in "Cream&Butter".
    The error message is (translated from german version):
    Open butter&cream.epub not possible
    In this media has been found errors
    If I unzip the epub file and edit in the OEBPS\content.opf the line  
    <dc:title>Cream&Butter</dc:title>
    to
    <dc:title>Cream_Butter</dc:title>
    The document opens, but with no cover.
    To show the cover, I have to edit OEBPS\cover.html
    <img src="images/cover.jpg" alt="Cream&Butter"/>
    to
    <img src="images/cover.jpg" alt="Cream_Butter"/>
    BTW: I work on a PC in German with Windows 8.1 64bit. ADE is in Version 4.0.3.110333

    My Acrobat that is part of CS4 won't open the PDFs created by the CS3 InDesign file.  However, I do have the plugin to open PDFs in InDesign and that doesn't work with these files either.
    These are files I created so I know that they are InDesign files.
    I am running OS 10.6.8 and using CS4.

  • I can´t open files with number after update, last week.

    Last week I upgraded Mavericks, Pages, Keynote and Numbers .. that's OK, then I could not open these programs. When I try, a window appears: "To open this spreadsheet must use a later version of Numbers.  You can download the latest version of Numbers from the Mac App Store.". 
    Access the App's Store and says application already installed. What I can do?

    Juan,
    When you upgraded to MAvericks and installed the latest iWork programs.  the installed moved the previous version of the iWork programs to the folder "/Applications/iWork '09"
    You are trying to open a numbers file in the new format with the previous version of Numbers.   The main thing to to be aware of what version you are running:
    Numbers:
                   2.3                                   3.0
    The previous version (2.3) is on the left and the new version (3.0) is on the right.
    The old version cannot open numbers files that are from version 3.0

  • 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

  • I still can't open files withis new upgrade this new adobe dc app. what gives????

    I have not re ieved any feed back on how to open the files with this new upgrade. I need help!

    Hi,
    Would you tell us which app you have?  Acrobat DC for iOS or Android?
    Can you also make sure that you have the latest version of the app?
    For iOS, the latest version (as of April 28, 2015) is 15.0.2.
    For Android, the latest version (as of April 28, 2015) is 15.0.1.
    If you are looking for the files that are locally stored on your device, please select "Local".
    Please let us know if you need additional information.

  • Plese help me ! can't open files with double clicking icons...

    at the first, sorry about my English. (i'm japanese and english is my second language so..) anway.... i can't open the files on desk top by double click. if i go to Finder then i can open files... and some files i can open by double click. i downloaded Limewire but i can't install it because my couble click is not working for that. but i can double click to open photoshop, safari or email or some other things in the dock. and i couldn't open up the games either.. doesn anybody knows what's happened to my son's computer? it's a iMac flat panel G4. and OS X 10.3.9. Thank you sooo much!!

    Saw your response and started to write to you for help also but have, with one final try, found PART of my problem. I have a Logitech wired optical mouse that worked with everything except opening desktop volumes when I double clicked on them. I could open applications and documents within the Finder window....just not the desktop volume icons.
    I ran Disk Utility........verified all the volumes........repaired all permissions, unplugged mouse and reset. Logitech software is up to date.. I've never had this happen before.
    What I discovered was that I was double clicking to open the volumes, but had the mouse set for single click. It's still a little strange because I changed it to double click to open and now it opens with double OR single click. Now I can open the volumes but it won't allow me to move the Finder windows that open. I can't drag or move them on the desktop; have to use them where they open.
    Any suggestions for me, I hope? Thanks.

  • Can't Open Files with Double Click??

    HI
    I am on 10.8.3 Mountain Lion and when using the trackpad or my wireless bluetooth mouse, I cannot open files by double clicking all of a sudden.  This is a serious problem as I cannot view my video files in Final Cut Pro.   There is no click speed preference in System Preferences and I have no idea what to do.  I don't want to have to right click to open any file on my Mac.  Does anybody have a solution for this?  Thanks

    I solved the problem.  If you go to System Preferences > Accessibility > Mouse and Trackpad -  You can set the speed of the double click to be much slower.   Hope this helps someone else with a similar problem.

  • Can't open files with quickoffice - anyone else?

    Hi,
    after upgrading to Belle, I also upgraded to quickoffice premium so that I could spell check documents.  Now I can't open word documents.  I can create new ones and then can't open these either.  Is it Bell or the quickoffice upgrade?
    Anyone else got this problem or know how to solve?
    Thanks

    On raising a support ticket on support.quickoffice.com I was provided a link for quickoffice pro version 7.1.18 which can open word files. So the quickoffice ppl have developed the compatible version with belle. I installed this and it is working fine.
    In Love With My C6-01:Now running on Nokia Belle!

Maybe you are looking for

  • Problem with JFrame's dispose();

    Hello everyone, I'm having a problem with JFrame's dispose() method. In my program I have 2 classes which go into full screen. On each screen there is a button to switch to the other screen. The first time I push the button on both of them the other

  • My built in i sight is not working please help me

    it worked bout a week and a half to take a picture on myspeace and i tried to see my friends on msn on the webcam and bnothing i cant see my self at all they can only hear me it says configure camera or something like that and something bout quiting

  • Icloud setup not working on my PC

    I get the following error message your setup couldnt be started because of an unexpected error Ive read online that this is an error that is known and theyre working on it. Anyone got an update on it?

  • Setting up Router E1200 on a computer that does not have an internet modem

    I just bought a E1200 router and can not install the software because I do not have an internet modem.  (I get my internet connection from ICS on my host computer -not the computer that I'm setting the modem up on.) Is there any way of setting up thi

  • WAV file won't replay in LabView or load in WMP, but works in VLC

    I'm creating an audio file for an interview with the code snippet attached (VI is very large and does a lot of unrelated processing).  This audio is recorded in the "interview" subvi.  At completion, this subvi is closed and the "process" subvi is op