On 08/06/2016 06:34 PM, Dr Rainer Woitok wrote:
>> ...
>> PROJ4 uses the PROJ_LIB environment variable for non-default paths to
>> the data files. You'll need to export this variable set to the absolute
>> path of your custom proj4 installation before starting qmapshack
>> (e.g. export PROJ_LIB=${HOME}/share/proj4).
>
> This does in fact work, thank you for pointing it out. However, I would
> still prefer to somehow compile the path into the QMapShack binary, so
> it works regardless of any environment variables. Is there a way to do
> so?
No, the environment variable is for PROJ4 only, QMapShack doesn't use it.
You can try setting the variable in Exec line of the qmapshack.desktop file:
$ cat ~/.local/share/applications/qmapshack.desktop
[Desktop Entry]
Version=1.0
Name=QMapShack
Exec=env PROJ_LIB=${HOME}/share/proj4 qmapshack %F
Icon=QMapShack
Terminal=false
Type=Application
X-MultipleArgs=false
Categories=Qt;Geoscience;Geography;Science;
GenericName=GPS device mapping utility
Keywords=map;GPS;geocaching;waypoints;tracks;
MimeType=application/x-gpx;
StartupNotify=true
Name[cs]=QMapShack
GenericName[cs]=Data GPS - a správa map
Name[de]=QMapShack
GenericName[de]=GPS Daten- und Kartenverwaltung
The system-wide file is installed in /usr/share/applications and your
custom file should be copied to ~/.local/share/applications and modified
there.
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
------------------------------------------------------------------------------
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users