Commit Graph

2 Commits

Author SHA1 Message Date
Valentin David
a1cb7ae352 many: Install bash completion files in writable directory
Snapd installs bash completion files from snaps in
`/usr/share/bash-completion/completions` which in some distributions
is a read-only filesystem.

Instead of installing them in `/usr` we can install them within
`/var/lib/snapd` which should always be writable.

Because `/var/lib/snapd/desktop` is already in `XDG_DATA_DIRS`, we can
save the files there.

Because bash-completion 2.1 and prior do not support `XDG_DATA_DIRS`,
on older distributions, the legacy path
`/usr/share/bash-completion/completions` will still be used.
2022-06-03 10:38:37 +02:00
Maciej Borzecki
188cab443e data: move bash/zsh completion support to separate directories
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-05-05 09:45:46 +02:00