[Xfce4-commits] r29355 - xfce4-panel/trunk/plugins/launcher
Nick Schermer
nick at xfce.org
Sun Jan 25 22:44:20 CET 2009
Author: nick
Date: 2009-01-25 21:44:20 +0000 (Sun, 25 Jan 2009)
New Revision: 29355
Modified:
xfce4-panel/trunk/plugins/launcher/launcher-exec.c
Log:
Fix the new environ usage...
Modified: xfce4-panel/trunk/plugins/launcher/launcher-exec.c
===================================================================
--- xfce4-panel/trunk/plugins/launcher/launcher-exec.c 2009-01-25 21:32:24 UTC (rev 29354)
+++ xfce4-panel/trunk/plugins/launcher/launcher-exec.c 2009-01-25 21:44:20 UTC (rev 29355)
@@ -472,7 +472,7 @@
/* copy the environ vars into the envp */
for (n = m = 0; listenv[n] != NULL; ++n)
if (G_LIKELY (strncmp (listenv[n], "DESKTOP_STARTUP_ID", 18) != 0 && strncmp (listenv[n], "DISPLAY", 7) != 0))
- envp[m++] = g_strdup (listenv[n]);
+ envp[m++] = g_strdup_printf ("%s=%s", listenv[n], g_getenv (listenv[n]));
/* append the startup notification id */
envp[m++] = g_strconcat ("DESKTOP_STARTUP_ID=", sn_launcher_context_get_startup_id (sn_launcher), NULL);
@@ -500,7 +500,7 @@
/* copy the environ vars into the envp */
for (n = m = 0; listenv[n] != NULL; ++n)
if (G_LIKELY (strncmp (listenv[n], "DISPLAY", 7) != 0))
- envp[m++] = g_strdup (listenv[n]);
+ envp[m++] = g_strdup_printf ("%s=%s", listenv[n], g_getenv (listenv[n]));
/* workaround for the failure of gdk_spawn_on_screen to setup the correct DISPLAY env */
dpyname = gdk_screen_make_display_name (screen);
More information about the Xfce4-commits
mailing list