On 8/10/07, Marcus Fritzsch <fritschy googlemail com> wrote:
On 8/10/07, Marcus Fritzsch <fritschy googlemail com> wrote:On 8/10/07, Michael Biebl <mbiebl gmail com> wrote:2007/8/10, jamie <jamiemcc blueyonder co uk>:On Fri, 2007-08-10 at 00:34 +0200, Marcus Fritzsch wrote:On 8/10/07, jamie <jamiemcc blueyonder co uk> wrote:marcus, Ubuntu likes your deskbar patch!Nice! I installed gnome (it made _huge_ leaps!!!) and it's the coolest way using tracker!mikkel ok to apply this? (if I dont hear from you soon I will apply anyway)One thing though. I talked with michael biebl about xdg-open and gnome-open --- he would suggest to use gnome-open as default action for .desktop files and fallback to xdg-open. But on my system gnome-open opens .desktop files as textfile with gedit/vim/... - xdg-open runs the application though. Any hint on how I can fix this, it's kind of irritating.not off hand - I would use xdg-open if it works (xdg-utils should be a recommended package)Actually, I meant it the other way around. I'm fine with using xdg-open as default, as long as we have a sane fallback (be it gnome-open or any other means). This way, we don't have a hard dependency on xdg-utils. Please keep in mind, that we can't know about all the other distros. So I'm very conservative when it comes to add a hard dependency on xdg-utils for the deskbar-applet plugin.hehe ok - me need learn english ;) OK, it's somewhat strange on my system - now gnome is installed, everything is fine, but now, gnome-open and xdg-open, both open .deskop files with the preferred text editor - this scares me a little bit. On the other hand, I can now run commands based on the .desktop file only. However, if xdg-open is there it is used.
So, here it is w/o xdg-open as this seems kind of 'unreliable' in some cases... I am using a snippet from the programs deskbar handler to read the .desktop thing. If that fails, the hit is not shown. As i am parsing the .desktop and cannot know how to interpret the Exec field (spaces and args that is) with some programs it gets ugly: if the command in the exec field contains command line options with some %-fields in it they will be stripped out - that breaks at least the dvd-creator on my system. I am undecisive in this situation. xdg-open/gnome-open does not work in any way with .desktop file son my system. Whereas exec'ing it directly works _most_ of the cases (and we can only work around this if we do a case for each application in the worst case). t.-s-t suffers the same problem if not using a correct ".desktop-runner". Who likes xdg-open? Who likes plain exec?! Please test this thing and report oddities. I also attached the complete deskbar handler for those uncomfortable with patching ;). Cheers, Marcus PS: I did some reorganization, it's _a_lot_ more readable now (functionally only conversations and emails were changed/added by me).
Attachment:
tracker_r758_deskbar-handler_no_xdg-open.patch
Description: Text Data
Attachment:
tracker-handler.py
Description: Text Data