Ubuntu unity displays users list:
I know that I can switch off this, using
gsettings set com.canonical.indicator.session user-show-menu false
or by using the dconf tools.
It works, but every user in the system has to do that, if he doesn't want to see all users list from system.
Do you know, how (and where) to set up this to not show users in menu as a default setting?
- Copy the code below into an empty, file, save it as
Exec=/bin/bash -c "sleep 10 && gsettings set com.canonical.indicator.session user-show-menu false"
- Copy the file to
From now on, the default will be set to not show the users. The setting will be applied shortly after log in.
- The command to disable the list can be run on log in, by placing a
.desktop file that runs your command in
~/.config/autostart. This will however only run for one user.
- If you do the same, but put the
.desktop file in
/etc/xdg/autostart, the command will be run, equally what user logs in.
sleep 10 is to make sure the command runs when the desktop is ready for it.
Exclude one user?
Simply put the file below in the user's
Exec=/bin/bash -c "sleep 15 && gsettings set com.canonical.indicator.session user-show-menu true"
Local versions of global
.desktop files will overrule the global ones, also on Startup Applications'