Skip to content
Thoughtful, detailed coverage of everything Apple for 34 years
and the TidBITS Content Network for Apple professionals

Dealing with Lion’s Hidden Library

Throughout its history, Apple has been focusing ever more on the new user and others who have no desire to access the bits under the hood. In fact, the very first releases of Mac OS X made a number of key system-level directories hidden. But with Mac OS X 10.7 Lion, Apple is going even further, and in a move that will likely reduce complexity while irritating long-time Mac users, Lion hides a previously visible user-level directory: the user’s Library folder.

What’s a little odd about this is that many users have very good reasons to want to work with items in the ~/Library folder, but other Library folders that users should not generally mess with — the top-level /Library and /System/Library folders — remain visible (though modifying them requires administrator privileges).

Luckily, there are a variety of ways for those of us who do wish to access our user Library folders to do so, and I’ll explain those shortly. But first, a short digression.

Developers, Avoid the Documents Folder — More concerning is a move we’ve seen among some developers (who shall remain nameless, as we encourage them to reverse these decisions) to move certain application support folders from ~/Library/Application Support to ~/Documents under the theory that users need to access these folders and won’t find them in a hidden ~/Library folder.

On the face of it, the move makes sense. For instance, BBEdit stores its scripts in ~/Library/Application Support/BBEdit/Scripts. If Bare Bones was worried that users wouldn’t be able to find that folder in Lion, they might consider moving the entire BBEdit application support folder to somewhere that users can access easily, such as ~/Documents.

If only one or two applications do this, it’s not a big deal. But were the practice to become commonplace, the ~/Documents folder would quickly become cluttered with these application support folders, reducing usability and causing headaches for users who assume, rightly, that they should control what appears in ~/Documents. Apple agrees, and in the section of the Mac OS X Developer Library about where to put application files, Apple says:

Don’t Pollute User Space

It is important to remember that the user domain (/Users) is intended for files created by the user. With the exception of the ~/Library directory, your application should never install files into the user’s home directory. In particular, you should never install files into a user’s Documents directory or into the /Users/Shared directory. These directories should only be modified by the user.

Even if your application provides clip art or sample files that the user would normally manipulate, you should place those files in either the local or user’s Library/Application Support directory by default. The user can move or copy files from this directory as desired. If you are concerned about the user finding these files, you should include a way for the user to browse or access them directly from your application’s user interface.

In fact, that is what Bare Bones does in BBEdit now — the first item in the Scripts menu is Open Scripts Folder, and choosing it does just that — opens a Finder window displaying the contents of ~/Library/Application Support/BBEdit/Scripts.

So, a plea to Mac developers — please keep your application support files in ~/Library even though it’s hidden, and, if it’s important that users be able to access those folders, provide an interface within your application.

Accessing the Library Folder in Lion — While Apple clearly believes that most users shouldn’t be messing around in the ~/Library folder, the company is aware that many of us do need quick access to it. So the new way of viewing ~/Library is to hold the Option key and choose Go > Library in the Finder. You can even press Option after you drop the Go menu. Of course, you could also choose Go > Go to Folder (Command-Shift-G) and enter ~/Library in the dialog that appears, but that’s unnecessary effort.

Once you can see the ~/Library folder, you can drag its icon (or its proxy icon from a Finder window’s title bar) to either the toolbar or sidebar of a Finder window. Once there, accessing it is merely a matter of clicking the icon.

If you’d just like your ~/Library to be visible normally in the Finder, that’s easy too; just enter this command in Terminal:

chflags nohidden ~/Library

And if you wish to reverse that action, just repeat the command without no, as in:

chflags hidden ~/Library

That’s all there is to it — regardless of whether you agree with Apple’s decision to hide the ~/Library folder, there’s no reason it has to get in your way.

Subscribe today so you don’t miss any TidBITS articles!

Every week you’ll get tech tips, in-depth reviews, and insightful news analysis for discerning Apple users. For over 33 years, we’ve published professional, member-supported tech journalism that makes you smarter.

Registration confirmation will be emailed to you.

This site is protected by reCAPTCHA. The Google Privacy Policy and Terms of Service apply.

Comments About Dealing with Lion’s Hidden Library