-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
gdm: refactor to properly handle wayland sessions #76985
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
Conversation
I haven't been able to test if it works correctly for standard Gnome setups : I have a build failure on some Gnome3 components on current master. |
With
The solution with the least resistance is probably adding an option to the gnome desktop that adds |
I'd much rather fix the bug of duplicates not working in |
Actually, core-shell doesn't add
xdg.portals is totally an accident and we should fix that.
|
I think I fixed the duplicates problem btw #77294. |
Yeah, with the duplicates being fixed we should add gnome-shell explicitly in core-shell. IIRC I tried adding gnome-shell to systemd.packages while we added systemd support in 3.34 and ran into the problem that gnome-shell was already added through the portal. |
Hello, sorry, I'm a bit short at the moment : I will wait for #77294 to be merged then I will rebase this pull request. I will have more time next week to finish the work on this :). |
Yep, makes sense to wait for #77294, this PR should be fine then :) |
I've merged #77294 ✨ |
🎉 |
I've rebased the branch, I'll make some tests throughout the week-end. |
@GrahamcOfBorg test gnome3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM at least :)
Oof, gdm tests are pretty out there. I've had that on my todo list for a while. |
This actually gets added via xdg.portal having gnome-shell. However, that could change and it still for sure should be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started sway in a vm with
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
programs.sway.enable = true;
environment.systemPackages = [ pkgs.dmenu ];
programs.gnome-terminal.enable = true;
programs.dconf.enable = true;
from gdm.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Motivation for this change
This PR tries to address issue #76169.
It is a draft PR since I'm currently stuck on using
systemd.packages
as mentioned by @hedning here.Here is the current state of this PR :
What works :
desktopManager.gnome3
If you're using a wayland compositor (like Sway) and you want to use GDM, then it works correctly in the current state.
What does not work :
Having those 2 options enabled :
I have the feeling it is due to the duplication of
gnome-session
(one with the exposing session file flag, the other one not) insystemd.packages
:I'm opening this PR to seek help of where I should be heading to from this point. It clearly is a naive implementation, and if you believe this is not the way it should be fixed we can simply dismiss this PR :).
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @lethalman @jtojnar @hedning @worldofpeace