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

Similar Messages

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

  • IWeb and uploading jpegs with spaces in their names

    I have created a site with about 100 jpegs that I wish to load up to a server other than ".Mac". Some jpegs have spaces in their names, so "Fetch" will not upload them. I deleted the spaces from their names and loaded the jpegs back into the site and saved and published to a folder. However, the resulting "Site"folder shows the jpegs still have spaces in their names, even though I removed them from the name of the jpeg. IWeb must be getting the name from some internal tag or something. For example, I had a jpeg called "Billie Holiday.jpg" I changed the name to "BillieH.jpg", but when I publish the site to a folder, the jpeg still shows up as "Billie Holiday.jpg" and therefore I cant upload it using "Fetch". Where is iWeb getting the names of the jpegs from, and how do I remove the spaces? Or, does anybody know of an application that can upload files (ftp) with spaces in their names?
    Thanks,
    Mitch

    However, the resulting
    "Site"folder shows the jpegs still have spaces in
    their names, even though I removed them from the name
    of the jpeg.
    Very strange. You might try renaming the site with Inspector to something else than Site and republishing, to guarantee you have a totally new set of files.
    Or, does
    anybody know of an application that can upload files
    (ftp) with spaces in their names?
    It's not the ftp program. You can't have spaces in file names on most web servers, they won't accept the files.

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

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

  • Clementine can't play files with special characters

    I saw Clementine can't play some mp3 files - it would just say "error loading file".
    So I opened an mp3 from the terminal and found out that the problem was the characters in the file name.
    For example, it wouldn't play "Schiller - Tired (mit Jaël).mp3" but works fine with "Schiller - Tired (mit Jael)"
    Any ideas why?

    Well...
    [bogdan@myhost ~]$ locale
    LANG=C
    LC_CTYPE="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_COLLATE="C"
    LC_MONETARY="C"
    LC_MESSAGES="C"
    LC_PAPER="C"
    LC_NAME="C"
    LC_ADDRESS="C"
    LC_TELEPHONE="C"
    LC_MEASUREMENT="C"
    LC_IDENTIFICATION="C"
    LC_ALL=
    [bogdan@myhost ~]$

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

  • 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

  • JMF Can't play file with cyrillic characters

    Fairly self explanetory - JMF fails to load files or directories with cyrillic characters. It throws the following exception:
    javax.media.NoPlayerException: Cannot find a Player for :file:///C:\Documents and Settings\drdanielfc\Desktop\DATscape\The Mad Heads\????? ?\06 ?????.wma
         at javax.media.Manager.createPlayerForContent(Manager.java:1412)
         at javax.media.Manager.createPlayer(Manager.java:417)
         at tune.in.music.MusicVideoPlayer.<init>(MusicVideoPlayer.java:56)
         at tune.in.components.library.Library$1.valueChanged(Library.java:52)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)The actual file is located at "C:\Documents and Settings\drdanielfc\Desktop\DATscape\The Mad Heads\&#1053;&#1040;&#1044;&#1030;&#1071; &#1028;\06 &#1043;&#1088;&#1086;&#1096;&#1110;.wma". JMF appears to turn all of the characters into ? marks as it cannot understand them. Is there some sort of workaround without renaming the files?
    Thanks ahead of time

    The actual file is located at "C:\Documents and Settings\drdanielfc\Desktop\DATscape\The Mad Heads\&#1053;&#1040;&#1044;&#1030;&#1071; &#1028;\06 &#1043;&#1088;&#1086;&#1096;&#1110;.wma".
    JMF appears to turn all of the characters into ? marks as it cannot understand them. Is there some sort of workaround without renaming the files?Well, a few things... first off, JMF won't play your wma file anyway as it doesn't support WMA files.
    But you might try reversing the order of the slashes.
    IE..
    MediaLocator ml = new MediaLocator("file:/C:/Documents and Settings/drdanielfc/Desktop/DATscape/The Mad Heads/&#1053;&#1040;&#1044;&#1030;&#1071; &#1028;/06 &#1043;&#1088;&#1086;&#1096;&#1110;.wma");
    You might also try constructing your MediaLocator from a URL, instead of a String.
    IE...
    URL url = new URL("C:\Documents and Settings\drdanielfc\Desktop\DATscape\The Mad Heads\&#1053;&#1040;&#1044;&#1030;&#1071; &#1028;\06 &#1043;&#1088;&#1086;&#1096;&#1110;.wma");
    MediaLocator ml = new MediaLocator(url);
    If those 2 suggestions don't work, nothing will. Also, test them with a WAV file since WMA isn't supported ;-)

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

  • How to delete the file with space in name

    Hi
    I want to delete the file "test ex.txt" file.
    i run the following command in command prompt.i can delete the file successfully.
    /bin/rm -f /mnt/"test ex.txt"
    I want to run the command from java.So i am using the following code
    String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
         Runtime rt = Runtime.getRuntime();
    process = rt.exec(cmd);
    The file was not deleted.
    How to delete the file with space in name?
    Help me

    Use the form of exec that takes an array of command + args.
    arr[0] = "/bin/rm"
    arr[1] = "-f"
    arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls.

  • Error while relocating (Can't write file (no space)) - Help please

    I have been having trouble relocating master files since upgrading to Leopard. The problem doesn't seem to affect only Aperture. I can happen when using Finder or another application to move files from one drive to another. Other types of files don't seem to be affected, just my library of image files.
    The copy operation runs for a while then hangs up. The application doing the copy reports an error that that's the end. Aperture gives this error message: Error while relocating (Can’t write file (no space)). The Finder reports plenty of available space on the destination drive!
    I remember seeing a thread--but can't find it now--about a problem with certain xmp metatdata embedded into files causing problems with file operations.
    Hoping for a solution!
    Message was edited by: thomas80205

    It's possible that you might have a corrupt file. Have you tried to copy different files on to the destination drive? If those files copy fine, then narrow down the offending file by copying less images at a time.

  • [Solved] Removing files with space in name.

    Hello!
    I have files named Feh wallpaper (exactly with space in name) and I was trying to remove it but i don't have any file manager and I remove files by rm.
    I was try rm -r feh_wallpaper and rm feh wallpaper and rm can't remove it
    Last edited by SpeedVin (2009-06-30 04:23:29)

    sHyLoCk wrote:
    SpeedVin wrote:Hello again i have a question how to copy files with space in neme i was trying /file but no succes and i have () in the name of file that's are a problem
    I can't rename it i got the same error when i want copy this file
    Did you try with quotes? and it is \file "\" is an escape sequence.
    Ohh thanks option with quotes work
    Last edited by SpeedVin (2009-07-15 11:23:16)

  • Hi Apple Team, my iphone can't share files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it becoming difficult for me to share.

    Hi Apple Team, my iphone can't share bluetooth files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it difficult for me to share bluetooth files from my mac bookpro to my iphone, unless i attached it through email.
    We need it to be acceptable to all devices.
    Thank you!

    You can tell Apple directly at the link below.
    http://www.apple.com/feedback/iphone.html

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

Maybe you are looking for