Commit d2dfdb5
committed
fix(snap): isolate CLI XDG paths from host environment
The Ubuntu Snap release canary is failing because GitHub-hosted runners set
`XDG_CONFIG_HOME=/home/runner/.config`, and the strict OpenShell snap currently
honors that host path. As a result, `openshell gateway add` tries to persist
gateway metadata under `/home/runner/.config/openshell/...` instead of the
snap-owned user directory, and strict snap confinement blocks the write.
The snap should set its user-facing app XDG paths explicitly to snap-owned
locations under `$SNAP_USER_COMMON`, so host-defined `XDG_*` variables cannot
redirect CLI or TUI state outside the snap sandbox.
The docs update also removes stale `--classic` Snap install examples, since the
OpenShell snap is strict-confined rather than classic-confined.
Signed-off-by: Kris Hicks <khicks@nvidia.com>1 parent 62b03f0 commit d2dfdb5
3 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
111 | | - | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
31 | 46 | | |
32 | 47 | | |
33 | 48 | | |
| |||
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
| 57 | + | |
42 | 58 | | |
43 | 59 | | |
44 | 60 | | |
| 61 | + | |
45 | 62 | | |
46 | 63 | | |
47 | 64 | | |
| |||
59 | 76 | | |
60 | 77 | | |
61 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
62 | 84 | | |
0 commit comments