I’m failing to build the universal-ctags snap so that it can access config file ~/.ctags.d/python.ctags
My current snapcraft.yaml:
I’ve added both:
- ~/.ctags.d (directory)
- ~/.ctags.d/python.ctags (file)
to the personal-interface ‘read’ access, because I believe the application (which is not mine) scans the content of the directory before trying to open whatever files it finds there (however, my strace skills are not sufficient to confirm this when running a snap.)
I build the snap file:
rm *.snap
snapcraft clean
snapcraft # (or 'snapcraft snap', which I believe is equivalent?)
I install that:
sudo snap install universal-ctags-*.snap --dangerous
and manually connect the personal files interface:
sudo snap connect universal-ctags:config-universal-ctags
which seems to work:
$ snap connections universal-ctags
Interface Plug Slot Notes
home universal-ctags:home :home -
personal-files universal-ctags:config-universal-ctags :personal-files manual
But, running the snap does not find that config file. Running it in verbose mode confirms that - it outputs that it did not find any config files under HOME. As a sanity test, if I instead run:
/snap/universal-ctags/current/bin/ctags
Then it reports:
Considering option file /home/jhartley/.ctags.d/python.ctags: reading...
Option: --python-kinds=-c
(i.e. it found the ‘python.ctags’ config file and read the correct content from it)
Any clues for what I might be doing wrong?