[evolution] [win32] Set a path in evolution-alarm-notify binary, so it finds its dependencies even if it is star
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [win32] Set a path in evolution-alarm-notify binary, so it finds its dependencies even if it is star
- Date: Fri, 28 May 2010 10:05:19 +0000 (UTC)
commit e1d1b66bb0327f7e300d164e2a8ecb268602fa4c
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date: Fri May 28 12:00:07 2010 +0200
[win32] Set a path in evolution-alarm-notify binary,
so it finds its dependencies even if it is started by a link in StartUp
submenu of Program menu.
calendar/gui/alarm-notify/notify-main.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c
index b20e7c5..2696119 100644
--- a/calendar/gui/alarm-notify/notify-main.c
+++ b/calendar/gui/alarm-notify/notify-main.c
@@ -48,6 +48,9 @@ main (gint argc, gchar **argv)
GtkIconTheme *icon_theme;
AlarmNotify *alarm_notify_service;
UniqueApp *app;
+#ifdef G_OS_WIN32
+ gchar *path;
+#endif
bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -56,6 +59,13 @@ main (gint argc, gchar **argv)
g_thread_init (NULL);
dbus_g_thread_init ();
+#ifdef G_OS_WIN32
+ path = g_build_path (";", _e_get_bindir (), g_getenv ("PATH"), NULL);
+
+ if (!g_setenv ("PATH", path, TRUE))
+ g_warning ("Could not set PATH for Evolution Alarm Notifier");
+#endif
+
gtk_init (&argc, &argv);
app = unique_app_new ("org.gnome.EvolutionAlarmNotify", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]