How to permanently disable user switching in Gnome 3?
Solution 1
This is for Gnome 3 (aka gnome-shell, NOT Unity), and will disable both the "Switch User" option in the user menu as well as on the lock screen:
Start the terminal with
Ctrl-Alt-T
, and then type:sudo apt-get install dconf-tools
- Start
dconf-editor
- Disable
apps->indicator-session->user-show-menu
:
Enable
org->gnome->desktop->lockdown->disable-user-switching
:Close dconf-editor, logout and log in to see the changes.
Solution 2
Another way to do this would be using the 'dconf editor'.
You can install it from software center.
After opening it click on 'apps' -> 'indicator session' and uncheck 'user-show-menu'.
Close the program and log out and back in.
Related videos on Youtube
gfcf14
Updated on September 18, 2022Comments
-
gfcf14 almost 2 years
I've recently read about converting an XNA game into a stand-alone executable file, and found out that publishing it through Visual Studio enables me to simply distribute it. I understand the process to publish and have done so without problems. And when the publishing finishes, I get three files: a folder, the installation file, and the clickonce file. I run and am able to install my game, yet when it runs, only about a second of the intro music plays, then it stops. And when I try running the shortcut in the start menu it won't run either. I did notice though, that the setup file is only 440 KB, the clickonce is 6KB, and the folder which has all the sources is 58.8 MB. The shortcut created is quite small as well, only 340 KB. So my question is, Are there any special properties to adjust before publishing? In the Application Files all the files are set as "Include (auto)", while all the dlls are set as "Prerequisite (auto)". The prerequisites are: Microsoft .NET FrameWork 4 Client Profile (x86 and x64), Microsoft XNA Framework Redistributable 4.0, and Windows Installer 3.1. I've seen this video
http://www.youtube.com/watch?v=sfjLeIDQV5Q
and there was no problem running his game so I don't see what I'm doing wrong. And I never did use XNA 3.5 before, I started making the game with XNA 4.0 and never updated the project, so I don't think it could be a compatibility issue. Please anyone let me know if you have any ideas to solve this, and thank you for any help in advance =)-
ish about 12 yearsYou mean allow multiple users on the system BUT disable user switching via the GUI? (logout?)
-
Daniel about 12 yearsno, I want them to be able to log out...just not be able to switch to another user while a user is already logged in.
-
Daniel about 12 yearsOh, and not just in the user menu, but also the lock screen..I wanna get rid of the "switch user" function altogether.
-
ish about 12 yearsAnd you're on Gnome
-
-
Daniel W. about 12 yearsjust out of curiosity...in gnome3 is this handled by lightdm as well? or is it handled by gdm?
-
ish about 12 yearsThe key is not this but disable-user-switching.
-
Daniel W. about 12 yearsAre they both doing the same thing? Cause using either key the 'User Menu' disappears from the panel. Or does the 'disable-user-switching' also affect the lock screen and the 'user-show-menu' doesn't?
-
rakslice almost 9 yearsAnother place to check for the setting for the lock screen is
org->gnome->desktop->screensaver->user-switch-enabled