[krb5-auth-dialog] launch prefs with full path



commit 35709df0b2719af477c7052a033e3188dd3c659c
Author: Guido Günther <agx sigxcpu org>
Date:   Mon Jun 1 21:27:39 2009 +0200

    launch prefs with full path
---
 ChangeLog              |    6 ++++++
 src/Makefile.am        |    1 +
 src/krb5-auth-applet.c |    4 +++-
 3 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b36941f..d748bea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jun  2 00:01:16 CEST 2009 Guido Günther <agx sigxcpu org>
+
+	launch prefs with full path
+	* src/Makefile.am: define BIN_DIR
+	* src/krb5-auth-applet.c (ka_applet_cb_preferences): use it
+
 Mon Jun  1 23:12:42 CEST 2009 Guido Günther <agx sigxcpu org>
 
 	* src/krb5-auth-dialog (ka_error_dialog): set application name
diff --git a/src/Makefile.am b/src/Makefile.am
index 03d58ae..136a8d8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,6 +43,7 @@ krb5_auth_dialog_CPPFLAGS = \
 	-I$(top_srcdir)/secmem \
 	-DKA_DATA_DIR=\""$(pkgdatadir)"\" \
 	-DLOCALE_DIR=\""$(localedir)/"\" \
+	-DBIN_DIR=\""$(bindir)/"\" \
 	$(AM_CPPFLAGS) \
 	$(NULL)
 
diff --git a/src/krb5-auth-applet.c b/src/krb5-auth-applet.c
index 63c8df4..0a4a141 100644
--- a/src/krb5-auth-applet.c
+++ b/src/krb5-auth-applet.c
@@ -535,7 +535,9 @@ static void
 ka_applet_cb_preferences (GtkWidget* menuitem G_GNUC_UNUSED,
                           gpointer user_data G_GNUC_UNUSED)
 {
-	g_spawn_command_line_async ("krb5-auth-dialog-preferences", NULL);
+	g_spawn_command_line_async (BIN_DIR
+				    G_DIR_SEPARATOR_S
+				    "krb5-auth-dialog-preferences", NULL);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]