Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Opening smplayer from thunar path issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
gr0x0rd
Apprentice
Apprentice


Joined: 12 Aug 2006
Posts: 276

PostPosted: Fri May 14, 2010 5:14 am    Post subject: Opening smplayer from thunar path issue Reply with quote

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
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1046
Location: Austria

PostPosted: Fri May 14, 2010 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
gr0x0rd
Apprentice
Apprentice


Joined: 12 Aug 2006
Posts: 276

PostPosted: Fri May 14, 2010 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri May 14, 2010 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
AlatarSaeros
n00b
n00b


Joined: 05 Sep 2007
Posts: 4

PostPosted: Sat May 15, 2010 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 535

PostPosted: Sun Jul 25, 2010 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Wed Oct 27, 2010 7:54 pm    Post subject: smplayer cant open files with spaces in name Reply with quote

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
View user's profile Send private message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4423

PostPosted: Fri Oct 29, 2010 1:29 pm    Post subject: Reply with quote

What exactly replaces the spaces with %20? If you open a file from your local filesystem, no chars, including spaces, should be replaced with anything. If you downloaded a file from a web site, you may have saved the file with %20 in the name - you should manually rename the file.
_________________
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
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Fri Oct 29, 2010 3:33 pm    Post subject: Reply with quote

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.
_________________
Game programming news for newbies | The Ark, making an RPG the right way!
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 2782

PostPosted: Fri Oct 29, 2010 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4423

PostPosted: Fri Oct 29, 2010 6:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Sat Oct 30, 2010 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
NEOxAKIRA
Guru
Guru


Joined: 20 May 2007
Posts: 302
Location: France

PostPosted: Mon Nov 01, 2010 9:41 pm    Post subject: Reply with quote

thx too
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 6793
Location: Sat in front of my computer

PostPosted: Tue Nov 02, 2010 9:01 pm    Post subject: Reply with quote

Merged from here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum