GNOME Shell – How to Remove Log Out, Reboot, and Shut Down from Application List


I’m new to Ubuntu. I don't know where the log out, reboot and shut down icons in my application list came from. I just need to remove this from here.

Activities window

Best Answer

If we talking about these gray colored icons:

Logout Reboot Shutdown

then they are provided by session-shortcuts package.

We can hide them by copying to current user settings folder and then adding property NoDisplay=true here:

mkdir -p ~/.local/share/applications/
cp /usr/share/applications/{logout,reboot,shutdown}.desktop ~/.local/share/applications/
echo "NoDisplay=true" | tee -a ~/.local/share/applications/{logout,reboot,shutdown}.desktop > /dev/null

then logout (and login again) or reboot.