diff options
Diffstat (limited to 'daemon/gdm-server.c')
-rw-r--r-- | daemon/gdm-server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c index 6d2d6cd5..4bbc3cce 100644 --- a/daemon/gdm-server.c +++ b/daemon/gdm-server.c @@ -166,8 +166,10 @@ char * gdm_server_get_display_device (GdmServer *server) { #ifdef WITH_SYSTEMD - /* systemd finds the display device out on its own based on the display */ - return NULL; + if (sd_booted () > 0) { + /* systemd finds the display device out on its own based on the display */ + return NULL; + } #endif #ifndef WITH_CONSOLE_KIT |