Compare commits
2 Commits
d1bd7a6100
...
29b1cfbaad
Author | SHA1 | Date |
---|---|---|
Kim Woelders | 29b1cfbaad | |
Kim Woelders | 355663252d |
|
@ -17,7 +17,10 @@ XSESSION_DESKTOPS = $(XSESSION_MISC) $(XSESSION_GNOME2) $(XSESSION_GNOME3)
|
||||||
DESKTOPS = $(DESKTOPS_APP) $(XSESSION_DESKTOPS)
|
DESKTOPS = $(DESKTOPS_APP) $(XSESSION_DESKTOPS)
|
||||||
|
|
||||||
miscdir = $(pkgdatadir)/misc
|
miscdir = $(pkgdatadir)/misc
|
||||||
misc_SCRIPTS = $(XCLIENTS) starte16 e16-dbus-cmd
|
misc_SCRIPTS = $(XCLIENTS) starte16
|
||||||
|
if ENABLE_DBUS
|
||||||
|
misc_SCRIPTS += e16-dbus-cmd
|
||||||
|
endif
|
||||||
|
|
||||||
applicationdir = $(datadir)/applications
|
applicationdir = $(datadir)/applications
|
||||||
application_DATA = $(DESKTOPS_APP)
|
application_DATA = $(DESKTOPS_APP)
|
||||||
|
|
|
@ -564,25 +564,26 @@ _SessionExitDbus(int how)
|
||||||
static void
|
static void
|
||||||
_SessionLogout(int how)
|
_SessionLogout(int how)
|
||||||
{
|
{
|
||||||
#if USE_SM
|
#ifdef USE_SM
|
||||||
if (EDebug(EDBUG_TYPE_SESSION))
|
if (EDebug(EDBUG_TYPE_SESSION))
|
||||||
Eprintf("%s: how=%d smc=%p\n", __func__, how, sm_conn);
|
Eprintf("%s: how=%d smc=%p\n", __func__, how, sm_conn);
|
||||||
|
#else
|
||||||
|
if (EDebug(EDBUG_TYPE_SESSION))
|
||||||
|
Eprintf("%s: how=%d\n", __func__, how);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_DBUS
|
||||||
|
if (_SessionExitDbus(how) == 0)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_SM
|
||||||
if (sm_conn)
|
if (sm_conn)
|
||||||
{
|
{
|
||||||
SmcRequestSaveYourself(sm_conn, SmSaveBoth, True, SmInteractStyleAny,
|
SmcRequestSaveYourself(sm_conn, SmSaveBoth, True, SmInteractStyleAny,
|
||||||
False, True);
|
False, True);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
if (EDebug(EDBUG_TYPE_SESSION))
|
|
||||||
Eprintf("%s: how=%d\n", __func__, how);
|
|
||||||
|
|
||||||
#endif /* USE_SM */
|
|
||||||
|
|
||||||
#if USE_DBUS
|
|
||||||
if (_SessionExitDbus(how) == 0)
|
|
||||||
return;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch (how)
|
switch (how)
|
||||||
|
|
Loading…
Reference in New Issue