#104 tuxpaint desktop file in non standard place?

v0.9.19
closed
5
2012-10-03
2008-04-03
secretlondon
No

Ubuntu has a patch to change the desktop file, which they claim isn't freedesktop compliant.

I think the original bug is here:
https://bugs.edge.launchpad.net/ubuntu/+source/tuxpaint/+bug/32252

I've attached their patch.

They have it on 0.9.16 and 0.9.17 (0.9.17 is their latest version)

Discussion

  • secretlondon
    secretlondon
    2008-04-03

    Logged In: YES
    user_id=1620584
    Originator: YES

    --- tuxpaint-0.9.16.orig/Makefile
    +++ tuxpaint-0.9.16/Makefile
    @@ -369,10 +369,10 @@

    uninstall:
    -if [ "x$(GNOME_PREFIX)" != "x" ]; then \ - rm $(GNOME_PREFIX)/share/gnome/apps/Graphics/tuxpaint.desktop; \ + rm $(GNOME_PREFIX)/share/applications/tuxpaint.desktop; \ rm $(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \ else \ - rm /usr/share/gnome/apps/Graphics/tuxpaint.desktop; \ + rm /usr/share/applications/tuxpaint.desktop; \ rm /usr/share/pixmaps/tuxpaint.png; \ fi
    -if [ "x$(KDE_PREFIX)" != "x" ]; then \ @@ -504,9 +504,9 @@
    install -d $(PKG_ROOT)$(GNOME_PREFIX)/share/pixmaps; \ cp data/images/icon.png $(PKG_ROOT)/$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \ chmod 644 $(PKG_ROOT)$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \ - install -d $(PKG_ROOT)$(GNOME_PREFIX)/share/gnome/apps/Graphics; \ - cp src/tuxpaint.desktop $(PKG_ROOT)$(GNOME_PREFIX)/share/gnome/apps/Graphics/; \ - chmod 644 $(PKG_ROOT)$(GNOME_PREFIX)/share/gnome/apps/Graphics/tuxpaint.desktop; \ + install -d $(PKG_ROOT)$(GNOME_PREFIX)/share/applications; \ + cp src/tuxpaint.desktop $(PKG_ROOT)$(GNOME_PREFIX)/share/applications/; \ + chmod 644 $(PKG_ROOT)$(GNOME_PREFIX)/share/applications/tuxpaint.desktop; \ fi

    only in patch2:
    unchanged:
    --- tuxpaint-0.9.16.orig/src/tuxpaint.desktop
    +++ tuxpaint-0.9.16/src/tuxpaint.desktop
    @@ -55,6 +55,7 @@
    Exec=tuxpaint
    Icon=tuxpaint
    Terminal=false
    +Categories=Education; Art;
    GenericName=Drawing program
    GenericName[af]=Tekenprogram
    GenericName[ar]=برنامج الرسم

     
  • Logged In: YES
    user_id=132410
    Originator: NO

    Applied first the patch to the Makefile.
    Applied second patch to src/tuxpaint.desktop.in (source of tuxpaint.desktop; don't ever edit this file, as it's generated!)
    Will be in Tux Paint 0.9.20.
    Thanks!