Closed stefonarch closed 7 months ago
Testing some approaches maybe this cannot be achieved bylxqt-leave
, as it cannot execute any command after itself. So probably it should run directly a custom lxqt-wlogout
version if running under wayland.
Or maybe for the logout this has to be done by
powermanager.logout()
Using now https://github.com/stefonarch/lxqt-wlogout which works nicely. loginctl terminate-user $USER
closes also tty sessions which is not wanted.
For screenlocking this piece in lxqt-lockscreen.desktop
works from the menu:
[Desktop Entry]
Type=Application
Exec=bash -c "if [ "$XDG_SESSION_TYPE" = "wayland" ]; then swaylock; else lxqt-leave --lockscreen; fi"
Icon=system-lock-screen
Categories=System;Screensaver;
OnlyShowIn=LXQt;
It shouldn't be too difficult to make powermanager.lockscreen()
use different actions depending on session type.
Probably impossible as a child process started by lxqt will die with the session while the compositor is still running.
As it looks like that
lxqt-session
has to be started by the compositorlxqt-leave -logout
will not stop the compositor running (and processes started by it).Possible Solution
Using
wlogout
the commands can be specified inXDG_CONFIG_HOME/wlogout/layout
:Except of the logout and the lockscreen this does the same as the
lxqt-leave
app, which could modify those 2 commands if running under wayland. Afaik there are only 2 valid lockers (excluding gtklock),swaylock
andwaylock
(which I didn't look into it yet).Maybe a setting for preferred screenlocker under wayland is needed in
lxqt-session
.Context
I've running a full lxqt-session (except of lxqt-panel - started by
wayfire.ini
- and apps eventually started by shortcut) running now and am usingwlogout
.System Information