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

How to affect the order in the list of sessions ? #161

Open
teto opened this issue Oct 28, 2024 · 0 comments
Open

How to affect the order in the list of sessions ? #161

teto opened this issue Oct 28, 2024 · 0 comments

Comments

@teto
Copy link

teto commented Oct 28, 2024

Describe the bug

my tuigreet lists ~5 sessions, 4 gnome sessions (including redundant ones I think ?), and one for sway, my main session.
When restarting my machine, the default select cmd reverts to "gnome" (I am on nixos). Desktop files seem to be sorted alphabetically ?
I wonder if I can influence the list in one way or another ?
e.g., I would like "sway" to get selected by default .maybe "--remember-user-session" should do that.

sway appears first in --sessions

              "--debug /tmp/tuigreet.log"
              "--remember"  # remember last logged-in username
              "--remember-user-session"
              "--user-menu"
              "--time"
              "--greeting 'Hello noob'"
              # TODO make sway the default wrapper
              "--sessions ${config.home-manager.users.teto.home.path}/share/wayland-sessions:${sessionData}/share/wayland-sessions"
              "--xsessions ${config.home-manager.users.teto.home.path}/share/xsessions:${sessionData}/share/xsessions"
              "--power-shutdown /run/current-system/systemd/bin/systemctl poweroff"
              "--power-reboot /run/current-system/systemd/bin/systemctl reboot"

with

 tuigreet --version
tuigreet 0.9.1 (x86_64-unknown-linux-gnu)

Additional context
Unrelated comments:

  • "--remember" would be more self-explaining as --remember-username ?
    I would appreciate a more detailed example for "--session-wrapper ". I tried to create my own but it failed. I had nvidia driver issue at the time so maybe that's why it couldn't launch. Maybe I need to retyr.

Debug log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant