Skip to content

pantheon: manage user session with systemd#140429

Merged
bobby285271 merged 5 commits intoNixOS:masterfrom
bobby285271:pantheon-systemd
Mar 29, 2024
Merged

pantheon: manage user session with systemd#140429
bobby285271 merged 5 commits intoNixOS:masterfrom
bobby285271:pantheon-systemd

Conversation

@bobby285271
Copy link
Member

@bobby285271 bobby285271 commented Oct 4, 2021

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: pantheon The Pantheon desktop environment 8.has: module (update) This PR changes an existing module in `nixos/` labels Oct 4, 2021
@bobby285271 bobby285271 requested review from davidak and jtojnar October 4, 2021 02:19
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Oct 4, 2021
@davidak
Copy link
Member

davidak commented Oct 4, 2021

Is this ready to test? Asking because it's marked as draft.

@bobby285271
Copy link
Member Author

bobby285271 commented Oct 4, 2021

Yes, I am using this on my physical machine.

@ofborg test pantheon

@bobby285271 bobby285271 added the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Oct 21, 2021
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to have both?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a link where upstream has it defined?

@davidak
Copy link
Member

davidak commented Dec 2, 2021

This seem to work.

Tested:

  • booting several times
  • login
  • lock screen
  • suspend, resume
  • start applications
  • restart
  • shut down

Copy link
Member

@davidak davidak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me and work.

@bobby285271
Copy link
Member Author

bobby285271 commented Dec 2, 2021

I updated the PR description. I guess I should close this for now to avoid confusions, I don't plan to merge this for now. I will re-open this or reflect this changes in other PR when ready. I am keeping the branch for anyone who wants to test this.

@bobby285271 bobby285271 closed this Dec 2, 2021
@davidak
Copy link
Member

davidak commented Dec 3, 2021

I noticed today that i can't always click, for example moving windows or make a different window active by clicking on it don't always work, i have to click in different places. Also, hotkeys for screenshot does not work anymore. Screenshots using the app work. Keyboard keys for volume up, down and mute don't work anymore. In the browser file save dialog, i can't click "Save", a workaround is to click once in the Name field.

Screenshot from 2021-12-05 21 24 45

Nothing related in logs.

@bobby285271
Copy link
Member Author

bobby285271 commented Dec 7, 2021

I can reproduce the keyboard keys issue but not other yet, also night light no longer works for me. I guess it will be nice to report the issue upstream as I don't know how to deal with these downstream currently. Anyway I am tracking this in https://github.com/NixOS/nixpkgs/projects/21#card-73471036 so we can make sure we revisit this when doing Pantheon 7 update.

@davidak
Copy link
Member

davidak commented Dec 13, 2021

The described problems are actually not related to systemd session. They also occur with latest stable NixOS 21.11.334139.1bd4bbd49be.

@bobby285271
Copy link
Member Author

bobby285271 commented Dec 14, 2021

For me, at least the keyboard keys issue happens only with --builtin removed...
For your information the filechooser has been redesigned in Pantheon 6.0.4.

@bobby285271 bobby285271 reopened this Jan 7, 2022
@ofborg ofborg bot requested a review from davidak January 7, 2022 09:08
@github-actions github-actions bot added the 6.topic: GNOME GNOME desktop environment and its underlying platform label May 22, 2023
@bobby285271
Copy link
Member Author

bobby285271 commented May 22, 2023

Now also applied #233981 (comment).

gnome-session!93 will likely happen in GNOME 46.

@bobby285271 bobby285271 force-pushed the pantheon-systemd branch 2 times, most recently from 1b06cb0 to 3e1539a Compare July 9, 2023 09:53
@ofborg ofborg bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Jul 9, 2023
@bobby285271 bobby285271 added this to the 24.05 milestone Nov 4, 2023
@github-actions github-actions bot removed the 6.topic: GNOME GNOME desktop environment and its underlying platform label Jan 11, 2024
@ofborg ofborg bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 27, 2024
This is now needed as gnome-session 46 drops `--builtin` option.
…on for Pantheon

See Nixpkgs pull request 233981.
This is changed after we manage session with systemd, as
[email protected] has `ExecStart=@bindir@/gala`.
Otherwise it doesn't autostart after user session managed by systemd.
Which is manually added in the nixos module.
@bobby285271 bobby285271 mentioned this pull request Mar 19, 2024
27 tasks
@bobby285271 bobby285271 removed the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Mar 29, 2024
@bobby285271
Copy link
Member Author

bobby285271 commented Mar 29, 2024

elementary/session-settings#73 has been merged, I would like to land this soon

@bobby285271 bobby285271 marked this pull request as ready for review March 29, 2024 14:35
@bobby285271 bobby285271 merged commit e96d5c1 into NixOS:master Mar 29, 2024
@bobby285271 bobby285271 deleted the pantheon-systemd branch March 29, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: pantheon The Pantheon desktop environment 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pantheon should manage user session with systemd

4 participants