From 707e763398063186c20d8aba3abdef20e3d39253 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 8 Aug 2005 19:24:36 +0000 Subject: [PATCH] put real path to avahi-discover into .desktop file git-svn-id: file:///home/lennart/svn/public/avahi/trunk@280 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-utils/Makefile.am | 6 +++++- .../{avahi-discover.desktop => avahi-discover.desktop.in} | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) rename avahi-utils/{avahi-discover.desktop => avahi-discover.desktop.in} (89%) diff --git a/avahi-utils/Makefile.am b/avahi-utils/Makefile.am index 5809eb7..78d5187 100644 --- a/avahi-utils/Makefile.am +++ b/avahi-utils/Makefile.am @@ -34,7 +34,7 @@ EXTRA_DIST = \ avahi-bookmarks.in \ avahi-resolve-host-name.in \ avahi-resolve-address.in \ - avahi-discover.desktop + avahi-discover.desktop.in if HAVE_PYTHON SUBDIRS=avahi @@ -45,6 +45,10 @@ desktop_DATA = avahi-discover.desktop bin_SCRIPTS = $(pythonscripts) endif +avahi-discover.desktop: avahi-discover.desktop.in + sed -e 's,@bindir\@,$(bindir),g' $< > $@ + chmod +x $@ + avahi-publish-address: avahi-publish-address.in sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ chmod +x $@ diff --git a/avahi-utils/avahi-discover.desktop b/avahi-utils/avahi-discover.desktop.in similarity index 89% rename from avahi-utils/avahi-discover.desktop rename to avahi-utils/avahi-discover.desktop.in index da4fa8b..2362cd4 100644 --- a/avahi-utils/avahi-discover.desktop +++ b/avahi-utils/avahi-discover.desktop.in @@ -2,7 +2,7 @@ Encoding=UTF-8 Name=Avahi Zeroconf Browser Comment=Browse for Zeroconf services available on your network -Exec=avahi-discover +Exec=@bindir@/avahi-discover Terminal=false Type=Application Icon=gnome-nettool.png -- 2.39.5