Ubuntu snap app (GitKraken) see directory outside home

Author: Steven Neiland
Published:

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

If you install gitkraken via snap on Ubuntu you will run into an issue if you try to access a directory outside of the users home directory. This is due to it being built with the new more restrictive permissions.

The simplest solution to this is to remount the directory in question inside your home so that it appears in both places and the snap application can access it.

So assuming you want GitKraken to be able to access the directory /var/www you could create a directory www inside your home directory and remount it accordingly. Then gitkraken could open it from with home

mkdir $HOME/www
sudo mount -obind /var/www $HOME/www

Reader Comments

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain advertisments or appear to be created for the purpose of link building, will not be published.

Archives Blog Listing