I tried to take a screenshot of the main manu power icon. My main goal is to have these actions on the login screen only, leaving the log out action as the mediator.

I'm currently using 16.04 64 bits

share|improve this question
    
Are you using default Ubuntu desktop ? – Sergiy Kolodyazhnyy Dec 31 '16 at 22:29
    
@Serg yes certainly – userDepth Jan 1 '17 at 0:29
up vote 2 down vote accepted

The restart and shutdown items from the session indicator are controlled by com.canonical.indicator.session and its corresponding keys suppress-restart-menuitem and suppress-shutdown-menuitem. All you have to do is run two commands in terminal:

gsettings set com.canonical.indicator.session suppress-restart-menuitem  true

and

gsettings set com.canonical.indicator.session suppress-shutdown-menuitem true

In 16.04 changes take effect immediately. I'm not sure about older version, so if you are running an OS prior to 16.04 you might want to log out and log back in to see changes.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.