2

I created a .desktop entry for a custom QGIS installation in ~/.local/share/applications. For some reason the Unity launcher and Kupfer refuse to index the entry - it does not show up.

Here is the content of ~/.local/share/applications/qgis-custom.desktop. I left out the translations.

[Desktop Entry]
Type=Application
Name=QGIS Desktop HEAD
Version=1.0
GenericName=Geographic Information System
Icon=qgis
TryExec=env LD_LIBRARY_PATH=/home/jjd/bin/qgis/lib /home/jjd/bin/qgis/bin/qgis
Exec=env LD_LIBRARY_PATH=/home/jjd/bin/qgis/lib /home/jjd/bin/qgis/bin/qgis %F
Terminal=false
StartupNotify=false
Categories=Qt;Education;Science;Geography;
MimeType=application/x-qgis-project;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;
Keywords=map;globe;postgis;wms;wfs;ogc;osgeo

In a former question I found out that the LD_LIBRARY_PATH has to be exported. The application successfully starts when I start it from the shell.

1 Answer 1

1

The TryExec key should only contain the command without any parameters. If it doesn't exist (in one of the folders in $PATH if you don't use an absolute path) the entry may be ignored.

So just use

TryExec=/home/jjd/bin/qgis/bin/qgis

(or remove the line altogether)

3
  • Thank you, it works. However, the icon shows up larger and there is no application name written under the icon.
    – JJD
    Sep 19, 2014 at 13:22
  • Try to use the full path to an icon with the right size or a scalable icon (SVG). Sep 19, 2014 at 14:08
  • The icons are fine after a restart.
    – JJD
    Sep 22, 2014 at 8:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .