When I built 2.8 here a month ago, (not currently on this new install) I didn't need to use a script to export & launch.
So in that case it was simple to create a .desktop just for 2.8 though you could use the script if need be on the Exec=, if so see note
Are you sure you need the launch script?
Anyway laid out basic here
http://ubuntuforums.org/showpost.php...86&postcount=4
For the .desktop I'll repeat here, though I used a slightly different Exec=, TryExec= red, then you show in your script
Code:
gedit ~/.local/share/applications/gimp2.desktop
Code:
[Desktop Entry]
Version=1.0
Type=Application
Name=Gimp 2.8
Comment=Create images and edit photographs
Exec=/opt/gimp-2.8/bin/gimp-2.8 %U
TryExec=/opt/gimp-2.8/bin/gimp-2.8
Icon=gimp
Terminal=false
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=GIMP
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version=2.8.0
X-GNOME-Bugzilla-OtherBinaries=gimp-2.8
MimeType=application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih;image/tiff;image/jpeg;image/x-psp;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;application/pdf;image/x-wmf;image/jp2;image/jpeg2000;image/jpx;image/x-xcursor;
Then just dragged it from ~/.local/share/applications/ on to the launcher, no issues
Edit:
The Icon= presumes another package version of gimp installed, otherwise needs to be full-pathed to an icon
Just to note - even when I make a .desktop that uses an Exec=script I always end with a <space>%U or %F or %f. This will allow the .desktop to be seen in the r. click context menu, %U should be ok
Bookmarks