Quoting Enrico Sardi <[EMAIL PROTECTED]>:
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
[EMAIL PROTECTED]@
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