putenv wants a char*, not a const
This commit is contained in:
parent
4b41ac8343
commit
2c6240fd2f
1 changed files with 5 additions and 1 deletions
|
@ -58,10 +58,14 @@ static void sn_event_func(SnMonitorEvent *event, gpointer data);
|
||||||
|
|
||||||
void sn_startup(gboolean reconfig)
|
void sn_startup(gboolean reconfig)
|
||||||
{
|
{
|
||||||
|
gchar *s;
|
||||||
|
|
||||||
if (reconfig) return;
|
if (reconfig) return;
|
||||||
|
|
||||||
/* unset this so we don't pass it on unknowingly */
|
/* unset this so we don't pass it on unknowingly */
|
||||||
putenv("DESKTOP_STARTUP_ID");
|
s = g_strdup("DESKTOP_STARTUP_ID");
|
||||||
|
putenv(s);
|
||||||
|
g_free(s);
|
||||||
|
|
||||||
sn_display = sn_display_new(ob_display, NULL, NULL);
|
sn_display = sn_display_new(ob_display, NULL, NULL);
|
||||||
sn_context = sn_monitor_context_new(sn_display, ob_screen,
|
sn_context = sn_monitor_context_new(sn_display, ob_screen,
|
||||||
|
|
Loading…
Reference in a new issue