* bug#37831: GDM has a GNOME entry even when not installed
@ 2019-10-20 11:15 Pierre Neidhardt
2020-02-14 19:14 ` Maxim Cournoyer
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Pierre Neidhardt @ 2019-10-20 11:15 UTC (permalink / raw)
To: 37831
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
My config.scm installs EXWM + StumpWM, but not GNOME.
Before the last core-update, GDM would only suggest the 2 window
managers.
After a recent Guix pull followed by a `guix system reconfigure', GDM
also suggests GNOME. If I select it, it fails to log in, which I
suppose is expected since it's not installed.
I believe the GNOME entry in GDM should only appear if GNOME is installed.
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#37831: GDM has a GNOME entry even when not installed
2019-10-20 11:15 bug#37831: GDM has a GNOME entry even when not installed Pierre Neidhardt
@ 2020-02-14 19:14 ` Maxim Cournoyer
2020-04-11 16:31 ` Ludovic Courtès
2020-04-11 22:23 ` Ludovic Courtès
2 siblings, 0 replies; 5+ messages in thread
From: Maxim Cournoyer @ 2020-02-14 19:14 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: 37831
Pierre Neidhardt <mail@ambrevar.xyz> writes:
> My config.scm installs EXWM + StumpWM, but not GNOME.
> Before the last core-update, GDM would only suggest the 2 window
> managers.
>
> After a recent Guix pull followed by a `guix system reconfigure', GDM
> also suggests GNOME. If I select it, it fails to log in, which I
> suppose is expected since it's not installed.
>
> I believe the GNOME entry in GDM should only appear if GNOME is installed.
I can confirm the issue, attempting to use GDM + ratpoison (without
GNOME installed).
Maxim
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#37831: GDM has a GNOME entry even when not installed
2019-10-20 11:15 bug#37831: GDM has a GNOME entry even when not installed Pierre Neidhardt
2020-02-14 19:14 ` Maxim Cournoyer
@ 2020-04-11 16:31 ` Ludovic Courtès
2020-04-11 22:23 ` Ludovic Courtès
2 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2020-04-11 16:31 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: 37831
Hi,
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> My config.scm installs EXWM + StumpWM, but not GNOME.
> Before the last core-update, GDM would only suggest the 2 window
> managers.
>
> After a recent Guix pull followed by a `guix system reconfigure', GDM
> also suggests GNOME. If I select it, it fails to log in, which I
> suppose is expected since it's not installed.
>
> I believe the GNOME entry in GDM should only appear if GNOME is installed.
I investigated this issue.
‘collect_sessions’ in ‘gdm-sessions.c’ does this:
--8<---------------cut here---------------start------------->8---
const char *xorg_search_dirs[] = {
"/etc/X11/sessions/",
DMCONFDIR "/Sessions/",
DATADIR "/gdm/BuiltInSessions/",
DATADIR "/xsessions/",
NULL
};
xorg_search_array = g_array_new (TRUE, TRUE, sizeof (char *));
const gchar * const *system_data_dirs = g_get_system_data_dirs ();
for (i = 0; system_data_dirs[i]; i++) {
session_dir = g_build_filename (system_data_dirs[i], "xsessions", NULL);
g_array_append_val (xorg_search_array, session_dir);
}
g_array_append_vals (xorg_search_array, xorg_search_dirs, G_N_ELEMENTS (xorg_search_dirs));
if (gdm_available_sessions_map == NULL) {
gdm_available_sessions_map = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, (GDestroyNotify)gdm_session_file_free);
}
for (i = 0; i < xorg_search_array->len; i++) {
collect_sessions_from_directory (g_array_index (xorg_search_array, gchar*, i));
}
--8<---------------cut here---------------end--------------->8---
‘gnome-desktop.desktop’, which contains the GNOME entry, is picked up
from $(guix build gnome-session)/share/xsessions, which happens to be
one of the ‘system_data_dirs’ elements (via $XDG_DATA_DIR).
So I thought that setting:
system_data_dirs = { NULL };
would solve the issue. Alas, it seems that when we do that, either the
array remains empty or somehow ‘collect_sessions_from_directory’ is not
called.
I can’t attach GDM though, or I don’t know what to attach it to…
Ideas anyone?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#37831: GDM has a GNOME entry even when not installed
2019-10-20 11:15 bug#37831: GDM has a GNOME entry even when not installed Pierre Neidhardt
2020-02-14 19:14 ` Maxim Cournoyer
2020-04-11 16:31 ` Ludovic Courtès
@ 2020-04-11 22:23 ` Ludovic Courtès
2020-04-12 7:52 ` Pierre Neidhardt
2 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2020-04-11 22:23 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: 37831-done
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> My config.scm installs EXWM + StumpWM, but not GNOME.
> Before the last core-update, GDM would only suggest the 2 window
> managers.
>
> After a recent Guix pull followed by a `guix system reconfigure', GDM
> also suggests GNOME. If I select it, it fails to log in, which I
> suppose is expected since it's not installed.
>
> I believe the GNOME entry in GDM should only appear if GNOME is installed.
Alright, I eventually succeeded and pushed a fix as
f4ec5e1a9823a66c27fe2bc033db7b58b29edfef (‘version-1.1.0’; will merge
later on ‘master’). Woohoo!
AFAICS it works as advertised, but please report any issues!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#37831: GDM has a GNOME entry even when not installed
2020-04-11 22:23 ` Ludovic Courtès
@ 2020-04-12 7:52 ` Pierre Neidhardt
0 siblings, 0 replies; 5+ messages in thread
From: Pierre Neidhardt @ 2020-04-12 7:52 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 37831-done
[-- Attachment #1: Type: text/plain, Size: 57 bytes --]
Thanks!
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-12 7:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-20 11:15 bug#37831: GDM has a GNOME entry even when not installed Pierre Neidhardt
2020-02-14 19:14 ` Maxim Cournoyer
2020-04-11 16:31 ` Ludovic Courtès
2020-04-11 22:23 ` Ludovic Courtès
2020-04-12 7:52 ` Pierre Neidhardt
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).