-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos: make GIO_EXTRA_MODULES a session variable, take two #151105
Conversation
af72194
to
0959ffa
Compare
@jtojnar what are your thoughts on this? I know it's a hack but I don't think it's worth waiting for upstream to fix the issue I'm also not sure what more we can do to test it |
Sounds okay to me but we will need to do more thorough testing to make sure it does not break anything else. |
I've tested basic functionality (log in, open a file browser) for the major display managers (lightdm, gdm, sddm) and desktop environments (gnome, plasma5, xfce, enlightenment, cinnamon, lxqt, mate) in a VM with Would this be enough or should we do some kind of call for testers? |
0959ffa
to
896cc03
Compare
Less hacky fix following upstream discussion: allow gnome-session to find GDM's @ofborg test gnome gnome-xorg (I've confirmed that this fixes GDM, and it doesn't affect anything else) |
896cc03
to
47c3bc7
Compare
Sounds good to me. |
47c3bc7
to
6d53e8a
Compare
Added an explanation in a comment. |
Looks like it is failing now: https://logs.nix.ci/?key=nixos/nixpkgs.151105&attempt_id=ac824d64-88cc-401f-9c60-8027adc68f6c |
Weird. I was only able to reproduce it once, now it's always succeeding @ofborg test gnome |
Still failing, still succeeding locally on the same commit. I hate computers. |
So the error seems to be this:
Google shows no hits. I'm going to try to run the test a couple more times, sorry for the noise |
Succeeds now. Looking at the source code this seems to be a timing issue: I'm confident that the issue isn't related to this PR, though it is related to #150980 since this is specific to timed logins. |
Increase the autologin delay to 3 seconds in the hope to avoid some failures, see NixOS#151105 (comment)
This is necessary so that gnome-session can find GDM's gnome-login.session, see https://gitlab.gnome.org/GNOME/gdm/-/issues/756
Allow applications started by the systemd user session manager to find their GIO_EXTRA_MODULES.
6d53e8a
to
23cfef7
Compare
@ofborg test gnome gnome-xorg |
@ofborg test gnome |
1 similar comment
@ofborg test gnome |
Let's see how the logs compare |
Yeah this is just duplicated noise
|
4103ff9
to
a298b23
Compare
Now that https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/168 is merged, do you want to wait for the next GDM release so we can skip d25ffc3 ? |
Not sure if it makes sense to wait https://wiki.gnome.org/FortyTwo |
Let's not wait then. |
What are we waiting for? |
Another attempt at #126832, which resulted in GDM crashing because of https://gitlab.gnome.org/GNOME/gdm/-/issues/756. As a workaround until that bug is fixed, wrap gnome-session-binary with an empty GIO_EXTRA_MODULES.
GDM and GNOME seem to work fine, although some more testing would be welcome.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes