Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Starting on Lion, Apple decided to annoy the users hiding the ~Library directory.

I was forced to type this on terminal to bring it back:

sudo chflags nohidden ~/Library

the problem is that every new OS update makes the folder hidden again, forcing me to type the command every time.

Is there a way to make it read-only so Apple cannot change it back?

share|improve this question
    
It is worth stating - "Apple" only changes this when you run a repair by Disk Utility or an installer package that touches library. Anything you can set (including immutable bits) can be undone by Apple's tools if you run them. –  bmike Oct 10 '12 at 14:39
    
Similar question here:apple.stackexchange.com/questions/58673/… –  Brad Patton Aug 20 at 17:35

4 Answers 4

up vote 2 down vote accepted

If you don't want to add a login item, you could also save this as ~/Library/LaunchAgents/com.stackexchange.apple.66594.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
    <key>EnableGlobbing</key>
    <true/>
    <key>Label</key>
    <string>com.stackexchange.apple.66594</string>
    <key>ProgramArguments</key>
    <array>
        <string>chflags</string>
        <string>nohidden</string>
        <string>~/Library/</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>
share|improve this answer
    
this is the best solution so far! Just one question: why this suffix .apple.66594.? –  SpaceDog Oct 8 '12 at 13:35
    
It's the DNS form of this question's URL and the id in reverse DNS notation. You can obviously change it to something else (like show_library) though. –  ؘؘؘؘ Oct 8 '12 at 18:16
1  
no, I asked why apple and this number in particular... –  SpaceDog Oct 9 '12 at 0:25
    
anyway, thanks! –  SpaceDog Oct 10 '12 at 23:06

No. Apple is firm in its decision to hide that folder. The only workaround is to either use the Go menu entry in Finder (simply hold down the OPTION key) or create an alias in ~/.bash_profile:

alias see='chflags nohidden ~/Library'

Then you only need to fire up Terminal and type "see."

share|improve this answer
    
good idea, but I have no .bash_profile file in my home directory. I have created one and added this line but it is no working. –  SpaceDog Oct 7 '12 at 18:40
    
@Mike, if you define the bash alias as described, you'll need to execute it to unhide the ~/Library folder by running see in Terminal. –  Gerry Oct 7 '12 at 18:56

You can use Automator to create a simple app using the Run Shell Script action (with the chflags command within) and put it in your Login Items (in the Users & Groups preferences). It will run every time you log in, so while OS updates will still re-hide the Library, you'll never notice.

Daniel Jalkut of Red Sweater Software has a pre-made app for this if you don't want to bother making your own. You can find it on his blog. Just download it and drag it to your Login Items.

share|improve this answer
    
very good!!!!!!! –  SpaceDog Oct 7 '12 at 18:54

Really simple. Use the Go Menu/Option key trick to access the Library, then drag it to the Finder window sidebar.

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.