[snap] Improve OS integration (#1157)

Get back read-write access to `$HOME/.config/httpie` and `$HOME/.httpie`.
This commit is contained in:
Mickaël Schoentgen 2021-09-15 16:50:44 +02:00 committed by GitHub
parent 9dd0203bae
commit e2ba214ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,17 +83,22 @@ parts:
echo "Copying extra files ..." echo "Copying extra files ..."
cp $SNAPCRAFT_PART_SRC/extras/httpie-completion.bash $SNAPCRAFT_PRIME/bin/ cp $SNAPCRAFT_PART_SRC/extras/httpie-completion.bash $SNAPCRAFT_PRIME/bin/
# plugs: plugs:
# dot-config-httpie: dot-config-httpie:
# interface: personal-files interface: personal-files
# write: write:
# - $HOME/.config/httpie - $HOME/.config/httpie
dot-httpie:
interface: personal-files
write:
- $HOME/.httpie
apps: apps:
http: http:
command: bin/http command: bin/http
plugs: &plugs plugs: &plugs
# - dot-config-httpie - dot-config-httpie
- dot-httpie
- home - home
- network - network
- removable-media - removable-media