remove E_Remember->prop.head

head is always 0
devs/stefan/wl-session-recovery
Mike Blumenkrantz 8 years ago
parent c727545bb2
commit 736b6e587f
  1. 1
      src/bin/e_config.c
  2. 11
      src/bin/e_remember.c
  3. 1
      src/bin/e_remember.h

@ -333,7 +333,6 @@ _e_config_edd_init(Eina_Bool old)
E_CONFIG_VAL(D, T, prop.desk_x, INT);
E_CONFIG_VAL(D, T, prop.desk_y, INT);
E_CONFIG_VAL(D, T, prop.zone, INT);
E_CONFIG_VAL(D, T, prop.head, INT);
E_CONFIG_VAL(D, T, prop.command, STR);
E_CONFIG_VAL(D, T, prop.icon_preference, UCHAR);
E_CONFIG_VAL(D, T, prop.desktop_file, STR);

@ -45,7 +45,16 @@ e_remember_init(E_Startup_Mode mode)
EINA_LIST_FOREACH(e_config->remembers, l, rem)
{
if ((rem->apply & E_REMEMBER_APPLY_RUN) && (rem->prop.command))
e_util_head_exec(rem->prop.head, rem->prop.command);
{
if (!ecore_exe_run(rem->prop.command, NULL))
{
e_util_dialog_show(_("Run Error"),
_("Enlightenment was unable to fork a child process:<br>"
"<br>"
"%s<br>"),
rem->prop.command);
}
}
}
}
E_EVENT_REMEMBER_UPDATE = ecore_event_type_new();

@ -105,7 +105,6 @@ struct _E_Remember
int desk_x, desk_y;
int zone;
int head;
const char *command;
const char *desktop_file;
unsigned char opacity;

Loading…
Cancel
Save