summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-10-14 23:10:08 +0200
committerBoris Faure <billiob@gmail.com>2019-10-17 09:58:40 +0200
commit98787cfc2dad59e748d9c6991631e8b7cff02b7a (patch)
tree32dae4e565e0b0fab2576d96cce3015d56ccb5c7 /src
parente9b2d22ff715eea01cb646f3361af9147bc5de1e (diff)
main: unsetenv("DESKTOP_STARTUP_ID") when it won't ever be used again
Also remove one as it might be used by apps
Diffstat (limited to 'src')
-rw-r--r--src/bin/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 46d303b..2bed6c1 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -248,7 +248,6 @@ main_ipc_new(Ipc_Instance *inst)
248 win = win_evas_object_get(wn); 248 win = win_evas_object_get(wn);
249 config = win_config_get(wn); 249 config = win_config_get(wn);
250 250
251 unsetenv("DESKTOP_STARTUP_ID");
252 if (inst->background) 251 if (inst->background)
253 { 252 {
254 eina_stringshare_replace(&(config->background), inst->background); 253 eina_stringshare_replace(&(config->background), inst->background);
@@ -337,6 +336,7 @@ main_ipc_new(Ipc_Instance *inst)
337 (ecore_evas_ecore_evas_get(evas_object_evas_get(win)), 1); 336 (ecore_evas_ecore_evas_get(evas_object_evas_get(win)), 1);
338 ecore_app_args_set(pargc, (const char **)pargv); 337 ecore_app_args_set(pargc, (const char **)pargv);
339 free(nargv); 338 free(nargv);
339 unsetenv("DESKTOP_STARTUP_ID");
340} 340}
341 341
342static const char *emotion_choices[] = { 342static const char *emotion_choices[] = {
@@ -482,7 +482,6 @@ _start(Ipc_Instance *instance)
482 instance->override, instance->maximized); 482 instance->override, instance->maximized);
483 // set an env so terminal apps can detect they are in terminology :) 483 // set an env so terminal apps can detect they are in terminology :)
484 putenv("TERMINOLOGY=1"); 484 putenv("TERMINOLOGY=1");
485 unsetenv("DESKTOP_STARTUP_ID");
486 485
487 config_del(instance->config); 486 config_del(instance->config);
488 config = NULL; 487 config = NULL;