Some days Dragon Master Ian aka eean asked me to have a look at integrating Dragon Player into the New Device Notifier thingy. While I was pretty sure it's not meant for actual use yet (didn't seem like it afterwards either :P) I jumped into it and came up with dragonplayer-opendvd.desktop.
The magic behind that stuff is that one actually can define very clearly when the desktop file should apply (using information provided by Solid).
X-KDE-Solid-Predicate=[[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ] OR [ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ]]Meaning unless the volume is set to be ignored somewhere from something and if it is an optical disc providing video dvd data this cool application can launch it.
The line above might seem a bit strange ... actually it is ... apparently whatever is parsing that desktop file (some solid dataengine I guess) doesn't like 2 ANDs or no AND or no OR => simply put: x = ? AND y = ? OR x = ? AND z = ?
No more and no less than that ;-)
Also I think the new device notifier needs some changes to increase understandibility:
The usual action is 'Open with ApplicationName' (e.g. Open with Dolphin), in my opinion an approach like in KickOff would be much better => use the generic name and only provide the application name as minor information. As a new user I might not know what Dolphin or Dragon Player is and what it does (ok, for Dragon it's pretty obvious ;-) so using 'Open with File Manager' and 'Open with Video Player' seems much more reasonable to me.
Anyway, get the new dragonplayer and check out the new device notifier integration :)

BTW: kde-nightly is pretty broken apparently ;-)

7 Comments:
[ x = ? AND y = ? ] OR [ x = ? AND z = ? ] is fine, but the desktop file is [ x = ? AND y = ? ] OR [ x = ? AND y = ? ].
Does it really need the same predicate repeated twice?
the example is xy OR xy because it's really the only case when dragonplayer is useable and since I need to have the a AND b OR c AND d format, the most reasonable solution is to just go with a AND b OR a AND b
Please note that not everybody is using only 1 media player. The user may want to know which application is started.
On top of that, current situation is a regression compared to kde 3.5 where you could have several different actions for the same media
The not-only-one player is a very rare case really :P
But even for those I suggested a kickoff-like solution, where you still get to know what application you start (besides the obvious fact that the icons are different).
I can't agree with the regression statement though. I really only remember 3rd-party applications like Amarok, K3b and Kaffeine come with a starter for most devices, and since those are not ported yet, the associated desktop files are also missing.
On your distro maybe, but on mandriva, this was not the case. I even proposed patch to allow k3b to be proposed when inserting a blank media, and have 2 different actions, one for data CD, and another for audio cD.
Under KDE3, for audiocd, you could have amarok and kscd. For video DVD, you could have kaffeine and kmplayer.
We all know that many distribution are proposing several application for the same purpose. Whenever people argue that too much choice was confusing for users, others people were fond to have choice.
So IMHO your solution should scale :
- scale if several applications can handle the media/device
- scale if several actions could be applied to the same media/device. For example for a CRDW, you can format it, create an audio CD, a data CD.
Previous KDE3 system was fine IMHO, even if it was very closed to the system proposed by Windows ( XP/Vista ), but at least was more powerful and easy to configure/customized.
米蘭情趣用品,情趣用品,情趣,飛機杯,自慰套,充氣娃娃,AV女優.按摩棒,跳蛋,潤滑液,角色扮演,情趣內衣,自慰器,穿戴蝴蝶,變頻跳蛋,無線跳蛋,電動按摩棒,情趣按摩棒
辣妹視訊,美女視訊,視訊交友網,視訊聊天室,視訊交友,視訊美女,免費視訊,免費視訊聊天,視訊交友90739,免費視訊聊天室,成人聊天室,視訊聊天,視訊交友aooyy
哈啦聊天室,辣妺視訊,A片,色情A片,視訊,080視訊聊天室,視訊美女34c,視訊情人高雄網,視訊交友高雄網,0204貼圖區,sex520免費影片,情色貼圖,視訊ukiss,視訊ggoo,視訊美女ggoo
080苗栗人聊天室,080中部人聊天室ut,ut影音視訊聊天室13077,視訊做愛,kk777視訊俱樂部,上班族聊天室,聊天室找一夜,情色交友,情色貼片
情趣,情趣,視訊交友,情趣用品,情趣用品,飛機杯,自慰套,自慰套,自慰套,自慰器,充氣娃娃,AV,按摩棒,電動按摩棒,情趣按摩棒,按摩棒,跳蛋,跳蛋,跳蛋,男女,潤滑液,SM,情趣內衣,內衣,性感內衣,角色扮演,角色扮演服,吊帶襪,丁字褲
Post a Comment