only unset the startup_desktop_id once, and dont free the string we pass to putenv
This commit is contained in:
parent
6a8a8531ba
commit
b77a03a1f2
2 changed files with 1 additions and 10 deletions
|
@ -515,9 +515,7 @@ static void remove_args(gint *argc, gchar **argv, gint index, gint num)
|
||||||
static void parse_env()
|
static void parse_env()
|
||||||
{
|
{
|
||||||
/* unset this so we don't pass it on unknowingly */
|
/* unset this so we don't pass it on unknowingly */
|
||||||
gchar *s = g_strdup("DESKTOP_STARTUP_ID");
|
putenv(g_strdup("DESKTOP_STARTUP_ID"));
|
||||||
putenv(s);
|
|
||||||
g_free(s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_args(gint *argc, gchar **argv)
|
static void parse_args(gint *argc, gchar **argv)
|
||||||
|
|
|
@ -58,15 +58,8 @@ 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 */
|
|
||||||
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,
|
||||||
sn_event_func, NULL, NULL);
|
sn_event_func, NULL, NULL);
|
||||||
|
|
Loading…
Reference in a new issue