Skip to content

Commit

Permalink
Merge pull request #407 from canonical/streamline-snap-package
Browse files Browse the repository at this point in the history
Fix snap XDG environment variables
  • Loading branch information
pedro-avalos authored Nov 19, 2024
2 parents 539d441 + 6f3fb89 commit 35d4122
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ docs/.sphinx/.doctrees/

_build
__pycache__

*.snap
12 changes: 9 additions & 3 deletions cli/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ architectures:

apps:
testflinger-cli:
command: bin/testflinger-cli.wrapper
command: testflinger-cli
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8
XDG_DATA_HOME: $SNAP_USER_DATA/.local/share
XDG_CONFIG_HOME: $SNAP_USER_DATA/.config
XDG_CACHE_HOME: $SNAP_USER_DATA/.cache
XDG_STATE_HOME: $SNAP_USER_DATA/.local/state
plugs:
- home
- network
Expand All @@ -30,8 +37,7 @@ parts:
launcher:
plugin: dump
source: .
organize:
testflinger-cli.wrapper: bin/testflinger-cli.wrapper

testflinger-cli:
plugin: python
source: .
Expand Down
4 changes: 0 additions & 4 deletions cli/testflinger-cli.wrapper

This file was deleted.

0 comments on commit 35d4122

Please sign in to comment.