Skip to content
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

pantheon: manage user session with systemd #140429

Merged
merged 5 commits into from
Mar 29, 2024

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
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 11-100 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
systemd.packages = [
pkgs.gnome.gnome-settings-daemon338
systemd.packages = with pkgs; [
gnome.gnome-settings-daemon338
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?

@@ -71,7 +72,7 @@ let
export XDG_DATA_DIRS=@out@/share:$XDG_DATA_DIRS

# Start pantheon session. Keep in sync with upstream
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
@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.

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
25 of 26 checks passed
@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 10.rebuild-linux: 11-100 11.by: package-maintainer This PR was created by the maintainer of 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