Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / accountsservice / get-dm-type-from-config.patch
blob3d4398ab303a5b8e05ef43d1fd5e2ff38a1387f6
1 diff --git a/src/daemon.c b/src/daemon.c
2 index aefaf2d..7c004d0 100644
3 --- a/src/daemon.c
4 +++ b/src/daemon.c
5 @@ -193,9 +193,9 @@ get_current_system_dm_type (void)
6 basename = g_file_get_basename (file);
7 g_object_unref (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;