Skip to content

Commit 57900a1

Browse files
authored
fix: disable global shortcuts portal while it is broken in Chromium/Electron (#126)
Need to create a launcher script because snapcraft/snapd do not support the equal '=' sign in a command definition!
1 parent da20037 commit 57900a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

snap/local/launcher.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
exec "$SNAP/opt/Mattermost/mattermost-desktop" --no-sandbox --disable-seccomp-filter-sandbox --disable-features=GlobalShortcutsPortal

snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ apps:
5454
mattermost-desktop:
5555
extensions: [gnome]
5656
command-chain: [opt/Mattermost/fix-default-download-dir]
57-
command: opt/Mattermost/mattermost-desktop --no-sandbox --disable-seccomp-filter-sandbox
57+
command: launcher.sh
5858
desktop: usr/share/applications/mattermost-desktop.desktop
5959
autostart: mattermost-desktop.desktop
6060
environment:

0 commit comments

Comments
 (0)