[evolution/gnome-2-30] [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/gnome-2-30] [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:14 +0000 (UTC)
commit cab64dfe9efb4b0a65c7364308601532465df667
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 483704f..a1fc8cb 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]