Skip to content

Commit 24e592c

Browse files
committed
snapcraft.yaml: Add the url-handler
1 parent 7f9406d commit 24e592c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

resources/linux/snap/snapcraft.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ apps:
5151
@@NAME@@:
5252
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@
5353
desktop: usr/share/applications/@@NAME@@.desktop
54+
environment:
55+
DISABLE_WAYLAND: 1
56+
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas
57+
58+
url-handler:
59+
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url
60+
desktop: usr/share/applications/@@NAME@@-url-handler.desktop
5461
environment:
5562
DISABLE_WAYLAND: 1
5663
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas

0 commit comments

Comments
 (0)