You are not logged in.
Hi,
I tried the following (the default Dragon Player won't work, anyway ):
/usr/share/apps/solid/actions/vlc-opendvd.desktop:
[Desktop Entry]
X-KDE-Solid-Predicate=[[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ] OR [ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ]]
Type=Service
Actions=open;
[Desktop Action open]
Name=Open with Video Player (VLC)
...
Exec=vlc
Icon=dragonplayer
This way it works, but I have to step through the VLC's Open Media->Disk dialog. There must be a way to skip it; I tried Exec=vlc --dvd (?) but it won't deliver.
Last edited by Llama (2009-11-13 17:05:15)
Offline
This is from vlc --help:
URL syntax:
[file://]filename Plain media file
http://ip:port/file HTTP URL
ftp://ip:port/file FTP URL
mms://ip:port/file MMS URL
screen:// Screen capture
[dvd://][device][@raw_device] DVD device
[vcd://][device] VCD device
[cdda://][device] Audio CD device
It looks suggestive, but I can't figure what to do with it
Last edited by Llama (2009-11-13 14:29:29)
Offline
This should work:
[Desktop Entry]
X-KDE-Solid-Predicate=[[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ] OR [ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ]]
Type=Service
Actions=open;
[Desktop Action open]
Name=Open with Video Player (VLC)
Exec=vlc dvd://%d
Icon=vlc
But I had to logout/login to make the action appear on the list. The dvd://%d bit will expand to dvd:///dev/sr0 for example, if /dev/sr0 is your DVD device file. If you have problems for some reason, it should work with only dvd:// since that will play your default DVD device. Also note the icon name to get a pretty VLC traffic cone
PS. Also note that the X-KDE-Solid-Predicate seems to be a tautology, since the two things being compared are the same. However, I removed one and it stopped working. How strange!
Last edited by Bralkein (2009-11-13 15:44:54)
Offline
PS. Also note that the X-KDE-Solid-Predicate seems to be a tautology, since the two things being compared are the same. However, I removed one and it stopped working. How strange!
Try this:
[Desktop Entry]
X-KDE-Solid-Predicate=[ StorageVolume.ignored == false AND OpticalDisc.availableContent & 'Data|VideoDvd' ]
Type=Service
Actions=open;
[Desktop Action open]
Name=Open with Video Player (VLC)
Exec=vlc dvd://%d
Icon=vlc
Offline
Thanks!
Offline