FS#26454 - smplayer: play file from smb share instead downloading

Attached to Project: Arch Linux
Opened by bartonello (bartonello) - Saturday, 15 October 2011, 13:59 GMT
Last edited by Ionut Biru (wonder) - Thursday, 29 December 2011, 16:23 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I'm kde user and I like smplayer. It'll be great to play media files from samba shares by clicking on it in dolphin. But by default media file will be downloaded after clicking on it.

To play file from smb share instead downloading I need edit "/usr/share/applications/smplayer.desktop": add line "X-KDE-Protocols=smb" and change "Exec=smplayer %F" to "Exec=smplayer %U". After this I can play media from dolphin. May be it is good idea to pack smplayer package with this options by default? Also (s)mplayer can play files not only from smb. So it'll be great to add other protocols too.

Additional info:
* package version(s)
extra/smplayer 0.6.9-3

* config and/or log files etc.
diff /usr/share/applications/smplayer.desktop ~/smplayer.desktop
14c14
< Exec=smplayer %F
---
> Exec=smplayer %U
26a27,28
> X-KDE-Protocols=smb
>

Steps to reproduce:
open dolphin, enter samba share, right click on media file, open with... smplayer.
This task depends upon

Closed by  Ionut Biru (wonder)
Thursday, 29 December 2011, 16:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.6.10
Comment by Ionut Biru (wonder) - Saturday, 15 October 2011, 14:03 GMT
that's a problem only with kde. if you change to %U you cannot play a media file if the path contains empty spaces
Comment by bartonello (bartonello) - Saturday, 15 October 2011, 14:10 GMT
I've just tried: file name with about ten spaces plays perfectly
Comment by Ionut Biru (wonder) - Saturday, 15 October 2011, 14:12 GMT
not a file name, a PATH.

mkdir test\ directory
cp somemediafile test\ directory
Comment by bartonello (bartonello) - Saturday, 15 October 2011, 14:22 GMT
path or file name... what difference? With spaces in path works too. I think path to file (path + filename) is quoted. And because of this it works. Am I wrong?
Comment by bartonello (bartonello) - Saturday, 15 October 2011, 14:29 GMT
"If an argument contains a reserved character the argument must be quoted. The rules for quoting of arguments is also applicable to the executable name or path of the executable program as provided." @ http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

"$ smplayer /home/bartonello/New folder/S p a c e.mp4" is not working, as expected. But by clicking in dolphin it works for me (%U in smplayer.desktop file).

Loading...