want proper .desktop file for Gnome/KDE desktops

Bug #418469 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Wishlist
Unassigned

Bug Description

I've added bzr-explorer.desktop file based on olive-gtk.desktop for bzr-gtk, but it's really should be installed from deb package to proper location. Here is part of conversation with AfC about desktop files. I don't edit it yet, but there is some useful links.

[10:28] <AfC> bialix: the .desktop spec is fairly clear; what are you having trouble with?
[10:28] <bialix> AfC: Icon
[10:28] <bialix> I've hacked something based on olive-gtk.desktop and pushed to trunk
[10:28] <AfC> bialix: Should be just
[10:28] <bialix> anybody able to test?
[10:29] <AfC> Icon=/fully/qualified/path/to/file.png
[10:30] <bialix> AfC: hmm, because bzr-explorer it's a plugin then I dont think I know what will be /fully/qualified/path
[10:31] <AfC> I'd show you a working example, but judging by the discourteousness rudeness above, I think we'll skip that.
[10:32] * bialix wonder...
[10:32] <bialix> AfC: I don't quite understand what do you mean
[10:33] <AfC> bialix: that was a Gentoo user expressing that he doesn't quite appreciate other people rubbishing the hard work of people who contribute to community distros.
[10:34] <bialix> AfC: I'm Windows user/developer
[10:34] <bialix> AfC: and I'm native Russian
[10:35] <bialix> so if you think I say something wrong -- I'll live with that
[10:35] <AfC> bialix: it wasn't you. It was the others.
[10:35] <vila> AfC: ohhh, so sorry, that was a joke about me having lost the habit of installing linux the hard way,
[10:36] * bialix feels out of sync
[10:36] <AfC> bialix: but in this case, the working example I was going to show you was in a Gentoo package [to my knowledge it's not packaged in Debian or Ubuntu or Fedora]
[10:37] <bialix> I think I'd better skip all this stuff
[10:37] <AfC> bialix: but as the others here would just make fun of me if I attempted to show it, I think we'll just move on.
[10:37] <vila> Contrast my requirement to fullermd for an install: 'download iso, boot, click , click' and the way Gentoo is installed... different needs, different means, not a critic of the Gentoo community...
[10:38] -->| psynaptic (<email address hidden>/user/93429/view) has joined #bzr
[10:41] [INFO] You are now marked as away (I'm not here right now.). Click the nickname button or use the |/back| command to return from being away.
[10:41] <AfC> bialix: I do remember that http://standards.freedesktop.org/desktop-entry-spec/latest/apa.html was not much help, but http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s02.html does give the rules
[10:42] <AfC> bialix: I believe the FHS path for .desktop files is /usr/share/applications
[10:42] <AfC> bialix: I have lots of .desktop files there.
[10:43] <AfC> bialix: if you're running Microsoft Windows (only) then that won't be of much help to you
[10:43] <bialix> AfC: so IIUC it should be done when packaging
[10:43] <AfC> bialix: yeah, that gets tricky
[10:43] <bialix> AfC: not only
[10:43] <bialix> AfC: but bzr development I do only there
[10:43] <AfC> bialix: it's one of those things that the program knows the data for, but that needs to get deployed by make install && packaging
[10:43] <bialix> AfC: Ok, thanks
[10:44] <bialix> I understand now
[10:44] <AfC> bialix: so what I can show you is a Perl script (a ./configure) that writes out a .desktop file at configure time.
[10:44] -->| visik7 (n=Adium@unaffiliated/visik7) has joined #bzr
[10:44] <AfC> bialix: see the very end of http://research.operationaldynamics.com/bzr/slashtime/mainline/configure
[10:44] <bialix> I think it will be toooo much for me
[10:45] <AfC> bialix: `make install` moves that to $(DESTDIR)$(PREFIX)/share/applications
[10:45] -->| JaredWigmore (n=JaredW@222-154-49-147.jetstream.xtra.co.nz) has joined #bzr
[10:45] <AfC> s/that/the .desktop file that outputs/
[10:46] <bialix> I see
[10:46] <AfC> bialix: sorry I don't have a cleaner example; most projects do m4 macros or similar template substitution. I did it with Perl
[10:46] <bialix> np
[10:46] <bialix> I'm already understand I'm unable to propely do this stuff
[10:47] * bialix avoids do the things he can't test
[10:47] <AfC> bialix: and, for what it's worth, that IS an in-production application, so it is a real example
[10:47] <AfC> bialix: even if it's a very tiny program
[10:47] <bialix> tiny?
[10:47] <--| al-maisan has left #bzr ("Parting is tough..")
[10:48] <AfC> bialix: the package is just a small program that tells you the time[zone] in various places: http://blogs.operationaldynamics.com/andrew/software/slashtime/slashtime-the-graphical-version.html
[10:49] <bialix> I understand
[10:49] <AfC> "tiny" :)
[10:49] <bialix> :-)
[10:49] <AfC> but "complete" in the sense that it installs properly, has translations, has a .desktop file, etc

Tags: packaging
tags: added: packaging
Changed in bzr-explorer:
importance: Undecided → High
status: New → Confirmed
summary: - [wishlist] proper .desktop file for Gnome/KDe desktops
+ [wishlist] proper .desktop file for Gnome/KDE desktops
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

This is arguably part of bug 425507.

Martin Pool (mbp)
summary: - [wishlist] proper .desktop file for Gnome/KDE desktops
+ want proper .desktop file for Gnome/KDE desktops
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Can this now be closed?

Changed in bzr-explorer:
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Well, a proper desktop file is installed by the debian packaging. So Debian and Ubuntu users will have Explorer show up in the GNOME/KDE menus. Though it might be nice to integrating this directly to the build system so people installing using "./setup.py install" on any Linux system would get this as well. Adding translations of the comment field would be a good idea as well. Distutils Extras has some tools to handle desktop files. Hopefully I can look into this soon.

I'd suggest leaving this open for now, but lowering the importance.

Changed in bzr-explorer:
importance: High → Low
Revision history for this message
Alexander Belchenko (bialix) wrote :

2Andrew Starr-Bochicchio: any progress on this?

Revision history for this message
Alexander Belchenko (bialix) wrote :

ping.

Changed in bzr-explorer:
importance: Low → Wishlist
assignee: Andrew Starr-Bochicchio (andrewsomething) → nobody
Revision history for this message
Alexander Belchenko (bialix) wrote :

It seems Andrew does not work on this anymore. I'm inclined to close this bug report.

Changed in bzr-explorer:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.