Comment 1 for bug 2026758

Revision history for this message
Alex Murray (alexmurray) wrote : Re: Bug #2008279 reappears (loss of keyboard input for x11 snaps) if ~/.cache is a link

The standard location for the XDG_CACHE_HOME directory is ~/.cache - and so snapd generates AppArmor rules which reference this path. AppArmor however resolves symlinks to their real path name, and so if ~/.cache is a symlink to ~/.config/cache then AppArmor will see the application try and access the file ~/.config/cache/xxx whereas the rule for AppArmor only allows ~/.cache/xxx - as such this is then denied.

Long story short is that it is not supported to have ~/.cache as a symlink - this needs to be a real directory.