Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Disable Command-Q for quitting applications' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable Command-Q for quitting applications
Authored by: resuna on Mar 30, '06 12:02:24PM
This should do the trick for all currently installed applications. :)
find / -name '*.app' | sed -e 's,.*/,,' -e 's/\.app$//' -e 's/.*/"Quit &" = "@Q";/' | tr '[\n]' '[ ]' | sed "s/.*/defaults write NSGlobalDomain NSUserKeyEquivalents '{&}'/" | sh
But I haven't tested it, so for god's sake don't use this unless you understand what it does well enough to debug it yourself. :)

[ Reply to This | # ]