LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-13-2018, 04:24 PM   #1
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Rep: Reputation: 229Reputation: 229Reputation: 229
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.

Thanks.
 
Old 05-14-2018, 12:35 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
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.
 
Old 05-16-2018, 01:09 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
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.
 
Old 05-17-2018, 01:10 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
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.
 
Old 05-17-2018, 10:36 AM   #5
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
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 for your comments.
 
Old 05-17-2018, 11:14 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by erik2282 View Post
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 for your comments.
It's a bit old, but you could try https://github.com/xfce-mirror/xfswitch-plugin

Ubuntu has an updated version of the above: https://launchpad.net/ubuntu/+source...gin/+changelog

Also, and I'm sorry if I am being naïve, but perhaps you could use the following from the command line:

Code:
xfce4-session-logout
If that works, you can create a shortcut to it.
 
Old 05-17-2018, 11:25 AM   #7
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Thanks hydrurga. I'll look into those links and try that command tonight if I get home early enough.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-terminal will not execute commands after a su (switch user) command joshjoshjosh Linux - Newbie 5 08-18-2017 02:20 PM
[SOLVED] Switch user from one simple user to another. sevs Linux - Security 4 07-07-2011 09:10 AM
debian - switch kde to command szita1 Linux - Newbie 2 10-22-2008 02:09 PM
KDE 'switch user' command not appearing fyhuang Linux - Software 3 07-10-2005 03:04 AM
Switch to another user, get his env and run a command 'under his name' ganninu Linux - General 2 05-25-2004 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration