Page MenuHomeLubuntu Development

Fix the "New Login" button on screensaver window
Open, NormalPublic


The thing is, we have a "new login" button on screensaver. It is hardcoded to use gdmflexiserver. We can create and push our own gdmflexiserver executable which will point to a sddm command to show greeter to login into another user.

Best place to put the executable is /use/share/bin
Contents of the gdmflexiserver would be:

dbus-send --print-reply --system --dest=org.freedesktop.DisplayManager /org/freedesktop/DisplayManager/Seat0 org.freedesktop.DisplayManager.Seat.SwitchToGreeter

Now the problem is on executing the above commands, we do get to greeter and can login into users. If we login to the same user which was locked, We get to a different session and apps running from the session before locking remain as it is. we DONOT get to the original session. Also we have only panel loaded and a blank desktop. Some gui apps like file manager don't show up even after launching them from app menu. shortcuts don't work either. you can see previous session apps would still be running if you do a quick ps -aux | grep -a //processname//
I will test if launching different user works correctly and update this description as required.

Need to find a way to log back into original session from the greeter. Also, someone check if the above mentioned dbus command is correct. I had just dug through sddm's cpp manual a lil bit and got this.

If we don't find a way to do this correctly then we should remove the "new login" button entirely as focal is a LTS release.

Event Timeline

The_LoudSpeaker triaged this task as Normal priority.Nov 14 2019, 1:09 AM
The_LoudSpeaker created this task.
The_LoudSpeaker changed the edit policy from "Custom Policy" to "All Users".

What is the use case for the "new login" button? I mean, if a user locks the screen, the user normally wants to unlock the existing session again.

And if we plan to use Wayland, the whole xscreensaver will be obsolete sooner or later.

To switch the login, maybe it would be easier to have a "Switch user" option, where the "Leave", "Shutdown", "Reboot"... options are. At least, I expect to find this option there, not hidden in the screensaver.

@apt-ghetto The new login button actually helps in switching users
Useful in our case as we don't have anything like gdm or kde's lock screen. Sddm currently lacks the ability to switch users.

Also, true an option should be there in applications menu near "leave" group. I will also try to dig into it.