Is it possible to remove "Log Out" from the Apple Menu? I know there used to be a tool that let you customize the Apple Menu (can't remember the name) but I doubt it's still working on Lion.

Preferably I'd like a Terminal command or something.

  • Is there a reason you're asking? – bneely Dec 11 '11 at 8:38
  • I wish I could move or copy the "Log Out" item from the Apple Menu to the quick user switch menu at the right side of the menu bar. It seems a much more appropriate place for it. – lhf Jun 15 '12 at 15:47
  • See also apple.stackexchange.com/questions/328980/… – lhf Jun 29 '18 at 17:23

This appears to work, but make a good backup before proceeding; you're messing with system files!

Using TextWrangler, open the file /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/StandardMenus.nib/objects.xib

You'll need to use an account with administrate privileges, and you'll be prompted for your password. Find the lines that read

<object class="IBCarbonMenuItem" id="286">
  <string name="title">Log Out %@</string>
  <string name="keyEquivalent">Q</string>
  <boolean name="dynamic">TRUE</boolean>
  <int name="keyEquivalentModifier">1703936</int>
  <ostype name="command">rlgo</ostype>

and delete them. Save the file. Reboot. Goodbye logout command.

| improve this answer | |

I've been looking at removing the Sleep and Shut Down options from the Apple Menu on our lab Macs. My focus was OS X 10.7.3.

I found that just removing the objects, as Daniel Lawson has suggested, also caused the Apple menu to crash when I clicked it.

After closer examination, I noticed that there were references to the Shut Down and Sleep objects elsewhere in the objects.xib file. After I removed both the objects and the references, the Apple menu behaved as expected, and did not show the Shut Down and Sleep options.

Here are my changes to the 10.7.3 objects.xib file:




# diff objects.xib ../StandardMenus.nib.ORIG/objects.xib 
>         <object class="IBCarbonMenuItem" id="236">
>           <string name="title">Sleep</string>
>           <ostype name="command">slep</ostype>
>         </object>
>         <object class="IBCarbonMenuItem" id="238">
>           <string name="title">Shut Down…</string>
>           <boolean name="dynamic">TRUE</boolean>
>           <boolean name="notPreviousAlternate">TRUE</boolean>
>           <ostype name="command">rsdn</ostype>
>         </object>
>         <object class="IBCarbonMenuItem" id="285">
>           <string name="title">Shut Down</string>
>           <boolean name="dynamic">TRUE</boolean>
>           <int name="keyEquivalentModifier">1572864</int>
>           <ostype name="command">shut</ostype>
>         </object>
>     <reference idRef="236"/>
>     <reference idRef="285"/>
>     <reference idRef="238"/>
| improve this answer | |

According to this website, the apple menu entries are kept here:


Otherwise you could try this app which apparently does the same thing but with a GUI

| improve this answer | |
  • As of 1/15/2012, FruitMenu (along with all other Unsanity apps) does not work with Lion. – Daniel Jan 16 '12 at 1:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .