snapcrafters / mutt

MIT License
0 stars 1 forks source link

Use personal-files to allow read-only access to ~/.mutt/ directory #7

Closed jarkkojs closed 7 months ago

jarkkojs commented 3 years ago

My mutt configuration is structured as follows:

.mutt/
├── accounts/
├── aliases
├── muttrc
├── sort-date.rc
├── sort-threads.rc
└── themes/

And I would like provide read-only access to this. Would it be possible to provide this for this snap by using https://snapcraft.io/docs/personal-files-interface?

I'm using 20.04 LTS, and Ubuntu does not provide a deb backport for mutt 2.0.

They I workaround the existing snap is that I just do this:

$ rmdir ~/snap/mutt/common && ln -s $HOME ~/snap/mutt/common
jarkkojs commented 3 years ago

Another workaround:

$ snap run --shell mutt
$ HOME=<home directory> mutt
jarkkojs commented 3 years ago

Also this works:

$ ln -s ~/.mutt /home/jarkko/snap/mutt/common/
$ ln -s ~/.mailcap ~/snap/mutt/common/

I'm just worried what happens when snap is removed. Does it remove just the symbolic link or recursively delete everything in ~/mutt?