-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Plasma5: Use upstream xsession/wayland-session files #56988
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
pinging #53843 because it will change that options name. |
I think the commit msg should start like |
Testing in a vm shortly |
@bkchr I think it would be a good idea to possibly add a test for the wayland session? Current test is broken because the session is now called
there. And it seems that using sddm's autologin fails if we try to set the default session to
Not sure if the assertion is right there. |
Hmm okay :( I will take a look. |
Did a quick test today by applying the patch on top of 19.03. Launching wayland session explicitly works (in fact, writing this comment from withing wayland session), but the default seession in SDDM becomes |
Right autologin with an upstream session doesn't work in sddm and lightdm at the moment. I left these asserts when doing #44497. I reasoned that the assert was in place to avoid getting stuck in a bad auto login (the upstream sessions isn't available at eval time). That's fixed in #53843, though it's a bit messy, partly due to the windowManager/desktopManager split which |
As far as I can see, the only thing left to do is rename the commit to start with "nixos/plasma5". Anything else? |
@infinisil It works but there's the breakages with upstream sessions noted by @hedning, @matklad, and I. I don't really think it's a good idea to just leave autologin broken so we need something like #53843 Other things are:
|
6ff5432
to
1c16770
Compare
Rebased |
This also enables Wayland for plasma5.
1c16770
to
763b75b
Compare
The wayland session is failing with log (
|
@adisbladis It looks like something that |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This should make the plasma 5 tests run whitout problems
Update plasma5 test
Is this now ready for prime time? |
See #56988 (comment). To paraphrase:
Also, since the session names have changed, what will happen for users that have done
for the xsession? |
Looks like the mentioned PR has since been merged. |
Correct, with #53843 merged you're not going to get any regressions with using upstream session. The options are renamed now as well. So 2 and 3 now 😄 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixos-20-03-feature-freeze/5655/11 |
Moving this to 20.09 milestone. At a glance, it's not as simple as I thought. I need to know more about nixpkgs custom startup script for wayland. |
I've "rebased"(copied from the source tree in my
in the journal. |
(Assuming you're using SDDM). @pasqui23 I'd try setting nixpkgs/nixos/modules/services/x11/display-managers/sddm.nix Lines 60 to 63 in 148bf83
This is done in X11 section:
|
I did apply @hedning's suggestion but unfortunately wayland still did not work. https://github.com/sddm/sddm/blob/develop/data/scripts/Xsession I don't know how that relates to wayland |
Right, |
However that still leaves .local/share/sddm/wayland-session.log empty even after my failed session,where else do I look? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/hardware-acceleration-on-firefox/7947/4 |
Upstream changed a lot. Is there anything in advance? |
@oxalica I'm waiting for nixos-unstabe to proceed. |
The last rebase was a long time ago so you are continuing the work @pasqui23. Closing in favor of that PR for now |
Guys, I'm spamming some of the old KDE wayland issues/PRs to ensure we get some testers. This comment is written from a plasma wayland session spawned from sddm after applying this PR (and the one-liner mentioned in a comment) which basically gets it going: #117102 |
This also enables Wayland for plasma5.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)