| View previous topic :: View next topic |
| Author |
Message |
gr0x0rd Apprentice


Joined: 12 Aug 2006 Posts: 276
|
Posted: Fri May 14, 2010 5:14 am Post subject: Opening smplayer from thunar path issue |
|
|
After doing an emerge -avuDN world the other day, I've come across a very annoying issue: when I try to open a file with smplayer from thunar that contains a space in the filename, the file isn't played. Files without spaces in the path open fine. For example,
/home/gr0x0rd/files/downloads/casino.mp4
works fine but
/home/gr0x0rd/files/downloads/casino [1995].mp4
doens't work. VLC and mplayer work fine.
I've tried changing Exec=smplayer %U to Exec=smplayer %F in /usr/share/applications/smplayer.desktop (found on ubuntu forums by googling) but that doesn't fix the issue.
In the above example, when I open the file with the space in the path, smplayer's title bar shows
file:///home/gr0x0rd/files/downloads/casino%20[1995]/mp4
Any ideas where the setting is to change this?
Thanks! _________________ ~g
emerge -FML... |
|
| Back to top |
|
 |
massimo Veteran

Joined: 22 Jun 2003 Posts: 1046 Location: Austria
|
Posted: Fri May 14, 2010 5:47 am Post subject: |
|
|
Does it work if you put the filename in between quotation marks? _________________ Hello, IT. Have you tried turning it off and on again? |
|
| Back to top |
|
 |
gr0x0rd Apprentice


Joined: 12 Aug 2006 Posts: 276
|
Posted: Fri May 14, 2010 4:21 pm Post subject: |
|
|
massimo, not sure what you mean by that... the problem is occurring through thunar (GUI) so I double click the file or right-click it and choose open with smplayer. I can open files from the command line fine (and yes, if there's a space in the path I either escape them or use quotes). _________________ ~g
emerge -FML... |
|
| Back to top |
|
 |
paradox6996 l33t


Joined: 01 Aug 2007 Posts: 914 Location: BFE CO
|
Posted: Fri May 14, 2010 7:22 pm Post subject: |
|
|
He means:
| Code: | | /home/username/"the file you want to open.avi" |
when you type out the location of the file you're trying to open. Look at this link here and scroll down to quote marks, and it will tell you what you need to know about white spaces and file names. _________________ Paradox(>")>
Everyone has to start somewhere, it just depends on where you end up that counts! (>")> |
|
| Back to top |
|
 |
AlatarSaeros n00b

Joined: 05 Sep 2007 Posts: 4
|
Posted: Sat May 15, 2010 6:08 pm Post subject: |
|
|
Same problem here. SMPlayer works just fine when I open files with spaces via the command line. Opening from any GUI, though, and the file is read in with the web code (%20) instead of an escaped space or quotes.
Poking around, it looks like the desktop file (/usr/share/applications/smplayer.desktop) was changed recently. Instead of accepting a file with %f, it's taking in a URL with %u. Change the exec command back, and that will restore normal functionality. If it doesn't seem to change, you can always check in the "Open with..." dialog, and set the custom command to smplayer %f. |
|
| Back to top |
|
 |
ichbinsisyphos Guru


Joined: 08 Dec 2006 Posts: 535
|
Posted: Sun Jul 25, 2010 4:27 am Post subject: |
|
|
| AlatarSaeros wrote: | | ... you can always check in the "Open with..." dialog, and set the custom command to smplayer %f. | Thanks, works. _________________ Please refer to "Austria" as "Republik Österreich" or "Republik Oesterreich" to avoid misunderstandings. Thank you.
| Muso wrote: | | I've done a lot of LSD |
| BoneKracker wrote: | | I have an IQ in the 140s |
|
|
| Back to top |
|
 |
rogerdv Apprentice


Joined: 01 Apr 2006 Posts: 185 Location: Santiago, Cuba
|
Posted: Wed Oct 27, 2010 7:54 pm Post subject: smplayer cant open files with spaces in name |
|
|
I recently reinstalled my home pc and found that smplayer cant open files if the names contain spaces, which are replaced by %20. The only weird thing I have done in this installation is that I followed a guide to fully localize my Gentoo in spanish, icluding somethign related to file names in UTF (cant remember exactly what was it).
Can somebody give me some directions to fix this? _________________ Game programming news for newbies | The Ark, making an RPG the right way! |
|
| Back to top |
|
 |
audiodef Advocate


Joined: 06 Jul 2005 Posts: 4423
|
|
| Back to top |
|
 |
rogerdv Apprentice


Joined: 01 Apr 2006 Posts: 185 Location: Santiago, Cuba
|
|
| Back to top |
|
 |
ppurka Advocate

Joined: 26 Dec 2004 Posts: 2782
|
Posted: Fri Oct 29, 2010 4:18 pm Post subject: |
|
|
Maybe you can try and change the '%U' in /usr/share/applications/smplayer.desktop to '%F' and see if you can get it to work? If it works then revert the above change and instead copy that desktop file to ~/.local/share/applications/smplayer.desktop and make the change there. This way, it will be a more permanent solution (otherwise the file in /usr will be overwritten the next time you recompile/update smplayer). _________________ emerge --quiet redefined | E17 vids: I, II |
|
| Back to top |
|
 |
audiodef Advocate


Joined: 06 Jul 2005 Posts: 4423
|
Posted: Fri Oct 29, 2010 6:13 pm Post subject: |
|
|
| rogerdv wrote: | | The file names are correct, in both ext3 and ntfs partitions. Those are videos I have since years ago. the space substitution happens at some point after I click the file in Thunar. |
Looks like Thunar is messing with your files. Maybe there are settings for Thunar you can change.
I don't allow graphical file managers to change my files in any way unless I specifically pass a command to do so. _________________ Abused Men: http://abusedmen.org
Seeds Mirror: http://kernel-seeds.audiodef.com
Postfix/Cyrus Howto: http://bit.ly/dGHQ2E
Pro-Audio on Gentoo: http://audiodef.com/projects.php?project_id=1 |
|
| Back to top |
|
 |
rogerdv Apprentice


Joined: 01 Apr 2006 Posts: 185 Location: Santiago, Cuba
|
Posted: Sat Oct 30, 2010 4:21 pm Post subject: |
|
|
| ppurka wrote: | | Maybe you can try and change the '%U' in /usr/share/applications/smplayer.desktop to '%F' and see if you can get it to work? If it works then revert the above change and instead copy that desktop file to ~/.local/share/applications/smplayer.desktop and make the change there. This way, it will be a more permanent solution (otherwise the file in /usr will be overwritten the next time you recompile/update smplayer). |
That solved the problem! Thanks _________________ Game programming news for newbies | The Ark, making an RPG the right way! |
|
| Back to top |
|
 |
NEOxAKIRA Guru

Joined: 20 May 2007 Posts: 302 Location: France
|
Posted: Mon Nov 01, 2010 9:41 pm Post subject: |
|
|
| thx too |
|
| Back to top |
|
 |
tomk Administrator


Joined: 23 Sep 2003 Posts: 6793 Location: Sat in front of my computer
|
|
| Back to top |
|
 |
|