Skip to content

Instantly share code, notes, and snippets.

@prashanthrajagopal
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prashanthrajagopal/a3091e2901317a4b3af0 to your computer and use it in GitHub Desktop.
Save prashanthrajagopal/a3091e2901317a4b3af0 to your computer and use it in GitHub Desktop.
Disable logoff, restart an shutdown from the menu drop down in osx
[100 +] prashanthrajagopal ~/StandardMenus.nib
=> diff objects.xib /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/StandardMenus.nib/objects.xib
185a186,212
> <object class="IBCarbonMenuItem" id="236">
> <string name="title">Sleep</string>
> <ostype name="command">slep</ostype>
> </object>
> <object class="IBCarbonMenuItem" id="237">
> <string name="title">Restart…</string>
> <boolean name="dynamic">TRUE</boolean>
> <ostype name="command">rrst</ostype>
> </object>
> <object class="IBCarbonMenuItem" id="284">
> <string name="title">Restart</string>
> <boolean name="dynamic">TRUE</boolean>
> <int name="keyEquivalentModifier">1572864</int>
> <ostype name="command">rest</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>
231a259
> <reference idRef="236"/>
347a376
> <reference idRef="285"/>
372a402
> <reference idRef="284"/>
381a412
> <reference idRef="237"/>
388a420
> <reference idRef="238"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment