dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Show ~/Library in Mojave

Open seaofclouds opened this issue 5 years ago • 8 comments

The method to show ~/Library in previous versions of macOS no longer works. Is there a terminal and dotfiles friendly way to show the Library in Mojave? The only method I am aware is through the macOS UI: Open User folder > Show View Options > Check "Show Library Folder".

https://github.com/mathiasbynens/dotfiles/blob/1b9145bb402a00a1ab695d7876706bfbbfc888af/.macos#L321

seaofclouds avatar Feb 21 '19 18:02 seaofclouds

Works fine for me on Mojave v10.14.2 (18C54).

yochem avatar Feb 25 '19 11:02 yochem

Doesn't work for me either on 10.14.3 (18D109).

reitermarkus avatar Feb 25 '19 12:02 reitermarkus

I have same Issue #824.

tshu-w avatar Feb 25 '19 12:02 tshu-w

When i followed the steps in this comment to reproduce the problem it seems to be broken on my machine too. When using chflags hidden ~/Library the folder gets hidden but the box in $HOME -> view > show view options is still checked.

yochem avatar Feb 25 '19 13:02 yochem

it works for me on 10.14.5

zzzeyez avatar May 21 '19 12:05 zzzeyez

We must also delete the FinderInfo extended file attributes: xattr -d com.apple.FinderInfo ~/Library

More info https://discussions.apple.com/thread/5846108

capyvara avatar Jul 11 '19 13:07 capyvara

possible solution from @tiiiecherle ? check : https://github.com/tiiiecherle/osx_install_config/blob/master/11_system_and_app_preferences/11c_macos_preferences_10_14.sh

show the ~/Library folder

if [[ $(xattr -l ~/Library | grep com.apple.FinderInfo) == "" ]]
    then
        :
    else
        xattr -d com.apple.FinderInfo ~/Library
fi

then set folder flag to not hidden

chflags nohidden ~/Library

pnodet avatar Aug 23 '19 00:08 pnodet

Why not just xattr -d com.apple.FinderInfo ~/Library 2>/dev/null, that's what I did in my dotfiles and seems to be working well.

capyvara avatar Aug 23 '19 04:08 capyvara