aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-02-22 11:45:46 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-02-22 11:45:46 -0500
commit10ae53b9948ca191915fe9de0dcdee4a10f61bee (patch)
tree146834ffbe2064035ac6eba039e84c0e42f89e75
parentuse per-instance event handler for batman powersave eventing (diff)
downloadenlightenment-10ae53b9948ca191915fe9de0dcdee4a10f61bee.tar.gz
re-set sandbox gadget cmdline on startup
ensure that this is updated in case the .desktop changes
-rw-r--r--src/bin/e_gadget_runner.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/e_gadget_runner.c b/src/bin/e_gadget_runner.c
index 723056bd5..7599f4f92 100644
--- a/src/bin/e_gadget_runner.c
+++ b/src/bin/e_gadget_runner.c
@@ -994,9 +994,12 @@ sandbox_create(Evas_Object *parent, const char *type, int *id, E_Gadget_Site_Ori
if (!ci)
{
ci = _conf_item_get(id);
- ci->cmd = eina_stringshare_add(ed->exec);
ci->exit_mode = EXIT_MODE_RESTART;
}
+ if (ci->id > 0)
+ if (!eina_streq(ci->cmd, ed->exec))
+ e_config_save_queue();
+ eina_stringshare_replace(&ci->cmd, ed->exec);
ci->sandbox = 1;
return gadget_create(parent, ci, id, orient);
}