EINTERN int
e_desklock_shutdown(void)
{
+ Eina_Bool waslocked = EINA_FALSE;
+
+ if (edd) waslocked = EINA_TRUE;
if (!x_fatal)
e_desklock_hide();
if (e_config->desklock_background)
e_filereg_deregister(e_config->desklock_background);
-
+
+ if (waslocked) e_util_env_set("E_DESKLOCK_LOCKED", "locked");
return 1;
}
ev = E_NEW(E_Event_Desklock, 1);
ev->on = 1;
ecore_event_add(E_EVENT_DESKLOCK, ev, NULL, NULL);
+
+ e_util_env_set("E_DESKLOCK_LOCKED", "locked");
return 1;
}
_e_desklock_autolock_time = 0.0;
}
+ e_util_env_set("E_DESKLOCK_LOCKED", "freefreefree");
}
static Eina_Bool
Eina_Bool nostartup = EINA_FALSE;
Eina_Bool safe_mode = EINA_FALSE;
Eina_Bool after_restart = EINA_FALSE;
+ Eina_Bool waslocked = EINA_FALSE;
double t = 0.0, tstart = 0.0;
char *s = NULL, buff[32];
struct sigaction action;
e_util_env_set("E_ICON_THEME", e_config->icon_theme);
ecore_exe_run_priority_set(e_config->priority);
locked |= e_config->desklock_start_locked;
+
+ s = getenv("E_DESKLOCK_LOCKED");
+ if ((s) && (!strcmp(s, "locked"))) waslocked = EINA_TRUE;
TS("E_Scale Init");
if (!e_scale_init())
if ((locked) && ((!e_config->show_splash) && (!after_restart)))
e_desklock_show();
+ else if (waslocked) e_desklock_show();
if (e_config->show_splash)
e_init_status_set(_("Setup Message Bus"));