loginManager: Remove sessionActive property
It is unused after switching to GnomeSession:SessionIsActive, so remove it together with shell_session_is_active_for_systemd(). https://bugzilla.gnome.org/show_bug.cgi?id=693161
This commit is contained in:
@ -14,11 +14,6 @@
|
||||
#include <langinfo.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_SYSTEMD
|
||||
#include <systemd/sd-daemon.h>
|
||||
#include <systemd/sd-login.h>
|
||||
#endif
|
||||
|
||||
static void
|
||||
stop_pick (ClutterActor *actor,
|
||||
const ClutterColor *color)
|
||||
@ -355,29 +350,6 @@ shell_get_file_contents_utf8_sync (const char *path,
|
||||
return contents;
|
||||
}
|
||||
|
||||
/**
|
||||
* shell_session_is_active_for_systemd:
|
||||
*
|
||||
* Checks whether the session we are running in is currently active,
|
||||
* i.e. in the foreground and ready for user input.
|
||||
*
|
||||
* Returns: TRUE if session is active
|
||||
*/
|
||||
gboolean
|
||||
shell_session_is_active_for_systemd (void)
|
||||
{
|
||||
/* If this isn't systemd, let's assume the session is active. */
|
||||
|
||||
#ifdef WITH_SYSTEMD
|
||||
if (sd_booted () <= 0)
|
||||
return TRUE;
|
||||
|
||||
return sd_session_is_active (NULL) != 0;
|
||||
#else
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* shell_util_wifexited:
|
||||
* @status: the status returned by wait() or waitpid()
|
||||
|
Reference in New Issue
Block a user