#StackBounty: #snap #home-directory How to align Snap's HOME with Linux?

Bounty: 50


When I use n3dr, it looks by default in the home folder for a .n3dr.yaml file. When a snap package is created, the tool complains that it cannot find the file. It turned out that snap has an other definition regarding $HOME.

$HOME on linux:

~/user, i.e. /home/user


INFO[0000] Home folder: '/home/user/snap/n3dr/x1'


To prevent that users have to create a n3dr.yaml file in another home directory, the question is whether it is possible to overwrite the Snap’s $HOME variable to ensure that it is identical to the Linux’ $HOME default.

How to align this? I.e.:

INFO[0000] Home folder: '/home/user'

instead of:

INFO[0000] Home folder: '/home/user/snap/n3dr/x1'

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.