|
From: | Benoit Sigoure |
Subject: | Re: Desktop file and exec path |
Date: | Thu, 08 Feb 2007 16:52:37 +0100 |
User-agent: | Internet Messaging Program (IMP) H3 (4.0.2) |
Quoting Enrico Sardi <address@hidden>:
I have a desktop file like this: glpegsolitaire.desktop ------------------------------------------------------------------ [Desktop Entry] Name=Peg Solitaire Comment=A "Peg Solitaire" for Gnome Exec=glpegsolitaire Icon=glpegsolitaire.png Terminal=false Type=Application Categories=GNOME;Game;BoardGame StartupNotify=true ------------------------------------------------------------------and I want that if I give the command "make install" the path in the Exec field will be replaced by the value of the $(datadir) variable. Is this possible?Many thanks for the help! Enrico
Although two ways of solving this issue have been proposed already, there is also another way out: using an AC_CONFIG_FILES. glpegsolitaire.desktop.in ------------------------------------------------------------------ [Desktop Entry] Name=Peg Solitaire Comment=A "Peg Solitaire" for Gnome address@hidden@ Icon=glpegsolitaire.png Terminal=false Type=Application Categories=GNOME;Game;BoardGame StartupNotify=true ------------------------------------------------------------------ In your configure.ac: AC_CONFIG_FILES([path/to/glpegsolitaire.desktop]) That's it. http://www.gnu.org/software/autoconf/manual/html_node/Configuration-Files.html -- SIGOURE Benoit aka Tsuna _____ /EPITA\ Promo 2008, LRDE
[Prev in Thread] | Current Thread | [Next in Thread] |