Skip to content

Commit 69c5392

Browse files
Add wrapper
1 parent d7108aa commit 69c5392

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

snap/local/bin/launcher

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
exec "$SNAP/usr/lib/swach/Swach" --no-sandbox --disable-gpu-sandbox --ozone-platform=x11 "$@"

snapcraft.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ source-code: https://github.com/shipshapecode/swach
2222

2323
apps:
2424
swach:
25-
command: usr/lib/swach/Swach --no-sandbox --disable-gpu-sandbox --ozone-platform=x11
25+
command: bin/launcher
2626
extensions:
2727
- gnome
2828
environment:
2929
TMPDIR: $XDG_RUNTIME_DIR
30-
DISABLE_WAYLAND: 1
3130
plugs:
3231
- audio-record
3332
- audio-playback
@@ -42,22 +41,18 @@ apps:
4241
- screen-inhibit-control
4342

4443
parts:
44+
launcher:
45+
plugin: dump
46+
source: snap/local
47+
source-type: local
48+
4549
swach:
4650
plugin: dump
4751
source:
4852
- on amd64: out/make/deb/x64/swach_${SNAP_VERSION}_amd64.deb
4953
- on arm64: out/make/deb/arm64/swach_${SNAP_VERSION}_arm64.deb
50-
prime:
51-
- usr/lib/swach/*
52-
- usr/share/*
5354
override-prime: |
5455
craftctl default
55-
echo "=== DEBUG: Prime directory after craftctl default ==="
56-
echo "Working directory: $(pwd)"
57-
echo "=== Looking for desktop files ==="
58-
find . -name "*.desktop"
59-
echo "=== Contents of usr/share/applications ==="
60-
ls -la usr/share/applications/ || echo "usr/share/applications does not exist"
6156
# Fix chrome-sandbox permissions - remove setuid bit
6257
if [ -f usr/lib/swach/chrome-sandbox ]; then
6358
chmod 755 usr/lib/swach/chrome-sandbox

0 commit comments

Comments
 (0)