diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-05-28 18:00:07 +0800 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-05-28 18:02:23 +0800 |
commit | e1d1b66bb0327f7e300d164e2a8ecb268602fa4c (patch) | |
tree | 7f03b759b8a68601c2219808664e4b9468b4096d /calendar/gui | |
parent | d90c1d909de432f06c4c93543ce7f3b3b870b9ed (diff) | |
download | gsoc2013-evolution-e1d1b66bb0327f7e300d164e2a8ecb268602fa4c.tar.gz gsoc2013-evolution-e1d1b66bb0327f7e300d164e2a8ecb268602fa4c.tar.zst gsoc2013-evolution-e1d1b66bb0327f7e300d164e2a8ecb268602fa4c.zip |
[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.
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | 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 b20e7c5e16..2696119732 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); |