1 diff --git a/src/daemon.c b/src/daemon.c
2 index aefaf2d..7c004d0 100644
5 @@ -193,9 +193,9 @@ get_current_system_dm_type (void)
6 basename = g_file_get_basename (file);
9 - if (g_strcmp0 (basename, "lightdm.service") == 0)
10 + if (g_file_test (PATH_LIGHTDM_CONF, G_FILE_TEST_EXISTS))
11 return DISPLAY_MANAGER_TYPE_LIGHTDM;
12 - else if (g_strcmp0 (basename, "gdm.service") == 0)
13 + else if (g_file_test (PATH_GDM_CUSTOM, G_FILE_TEST_EXISTS))
14 return DISPLAY_MANAGER_TYPE_GDM;