Indicator Applet complete

Is there a way to remove the shutdown button from the indicator applet complete?

I use the classic menu system>shutdown and find the indicator applet complete having a logout-shutdow-switch user redundant and a waste of panel space. I believe I had done this before on other installations using dconf, but can't find it.
I am running Ubuntu Mate 20.04 LTS with the classic panel.

This is my indicator applet now:
panel
I want it to look like this:
panel2

How do I shut the shutdown off on the panel?

After some research I got the following. The related package is indicator-session.
It is bind to com.canonical.indicator.session GSettings schema.

To correctly trigger it we need to switch menu and username ON

gsettings set com.canonical.indicator.session user-show-menu true
gsettings set com.canonical.indicator.session show-real-name-on-panel true

and then OFF

gsettings set com.canonical.indicator.session user-show-menu false
gsettings set com.canonical.indicator.session show-real-name-on-panel false

and then we can enjoy the result.

This solution is universal - tested it in 18.04 LTS and 20.04 LTS.

1 Like

That seems to be the problem, I am missing sessions.

Me too. That is why I'm doing this from terminal. In one shot it will be:

gsettings set com.canonical.indicator.session user-show-menu true
gsettings set com.canonical.indicator.session show-real-name-on-panel true
sleep 10
gsettings set com.canonical.indicator.session user-show-menu false
gsettings set com.canonical.indicator.session show-real-name-on-panel false

For my Ubuntu MATE 18.04 LTS after third reboot the session indicator returned, so here I took extra measures:

systemctl mask --user indicator-session
sudo chmod a-x /usr/lib/x86_64-linux-gnu/indicator-session/indicator-session-service
2 Likes

Thanks, worked great

1 Like

And to further help, you might consider the following -

1 Like

The way I do it is to remove indicator applet complete from the panel, then add indicator applet to the panel. At first it looks like indicator applet complete, but you can disable various elements in your autostarts. Just disable session. I also disable power since I am on a desktop.

1 Like