diff --git a/launcher/launcher b/snap/local/bin/launcher similarity index 82% rename from launcher/launcher rename to snap/local/bin/launcher index c4399f3..dd96016 100755 --- a/launcher/launcher +++ b/snap/local/bin/launcher @@ -1,7 +1,7 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh if [[ ! -n "$DISABLE_WAYLAND" ]] && [[ -n "$WAYLAND_DISPLAY" ]] ; then WAYLAND_OPTS="--enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=auto" fi -exec "$SNAP/usr/bin/proton-pass" --no-sandbox --disable-seccomp-filter-sandbox $WAYLAND_OPTS "$@" \ No newline at end of file +exec "$SNAP/usr/bin/proton-pass" --no-sandbox --disable-seccomp-filter-sandbox $WAYLAND_OPTS "$@" diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 895b6cb..b138f19 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -96,8 +96,9 @@ platforms: apps: proton-pass: - command: launcher + command: bin/launcher desktop: usr/share/applications/proton-pass.desktop + common-id: me.proton.Pass extensions: - gnome plugs: @@ -118,9 +119,8 @@ apps: parts: launcher: plugin: dump - source: launcher - override-build: | - cp launcher $CRAFT_PART_INSTALL/ + source: snap/local + source-type: local proton-pass: plugin: dump