Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831
Rep:
Switch user command in Debian 9
Not the su command. I'm looking for the script or executable that when, in the GUI, you click on logout and another dialog box opens with the switch user option. Where in the file system is this being done? Im using the Mate Desktop, which is a fork of Gnome 2.
this is not a script or executable, you won't find a script. Probably you can kick the current user off, but this is not the right way. Remember, in the linux world there is no such thing "switch users", it is a real multiuser environment, any number of [different] users can be logged in. What you are talking about is the GUI which is driven by the display manager, so you need to restart it with the new user. But first you need to gracefully shut it down, which is made by the menu.
I think you might be asking how does a window manager perform the task of logging out a user and providing a screen to select a user. Since you say Mate then it would be in the source of it. Once in a while you can load that all into an IDE and peek into it pretty quickly. Someone might know here. The Mate team would know exactly where that code resides.
The problem is that it is not a single script, but binaries. Most probably it is the xinit (or something similar) and the greeter and some other appes too.
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831
Original Poster
Rep:
Thanks guys, the reason I was asking was because when I used XFCE, my preferred desktop, switch user doesn't work. It works fine in kde and mate, though. So i wanted to create a
shortcut to switch user if it was a simple executable file. My wife and I share this desktop and she doesnt like xfce anyway, so I'm just going to stick with Mate for me and Kde for her.
Thanks guys, the reason I was asking was because when I used XFCE, my preferred desktop, switch user doesn't work. It works fine in kde and mate, though. So i wanted to create a
shortcut to switch user if it was a simple executable file. My wife and I share this desktop and she doesnt like xfce anyway, so I'm just going to stick with Mate for me and Kde for her.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.