Closed tmccombs closed 3 months ago
Adding an argument to provide environment variables to be used when the default command (--cmd
) is started could be an option. This would remain flexible to add other, unrelated to the graphical environment, variables if needed.
The way I see it, this should only be applied to the default session: the environment should be cleared if the command is changed from the UI, or a session is selected or remembered. Does this make sense?
@tmccombs Do you have any opinion on this?
That sounds good to me
This has been merged onto the main branch and will be included in 0.10.0. If you're using a bleeding-edge version of tuigreet
, feel free to test it out and create new issues if you notice problems.
When tuigreet uses a session from one of the session directories it can infer the session type from the folder, but if the default session from the cms option is used, then XDG_SESSION_TYPE isn't set. I would like a way to specify the value of the session type (wayland or x11) when using the cms session.
Alternatively, have a way to set environment variables that are set before the pam session is started when using the cmd session.