From d9745a737ac46586ad2b72e5f3912991d23b1a0a Mon Sep 17 00:00:00 2001 From: Maximiliano Bertacchini Date: Wed, 5 Feb 2020 12:16:20 -0300 Subject: [PATCH 1/3] Add build-essential to the snap's build deps. --- snap/snapcraft.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 804c0fcc42..6b9cba5186 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -45,6 +45,7 @@ parts: - "-DCMAKE_INSTALL_PREFIX=/usr" - "-DCMAKE_BUILD_TYPE=Release" build-packages: + - build-essential - xorg-dev - libcurl4-openssl-dev - libavahi-compat-libdnssd-dev From f2f9f1ec643cc0de129c15f6a2816635813d71a6 Mon Sep 17 00:00:00 2001 From: Maximiliano Bertacchini Date: Wed, 5 Feb 2020 12:16:53 -0300 Subject: [PATCH 2/3] Explicitly disable wayland support in the snap. --- snap/snapcraft.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6b9cba5186..41f14cb05c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -11,6 +11,8 @@ license: GPL-2.0 apps: barrier: command: desktop-launch barrier #first run might take longer + environment: + DISABLE_WAYLAND: 1 desktop: usr/share/applications/barrier.desktop common-id: com.github.debauchee.barrier plugs: &plugs From 65fb58ebe5e1f9fa5b9dbfcda394163b353fba8b Mon Sep 17 00:00:00 2001 From: Maximiliano Bertacchini Date: Wed, 5 Feb 2020 12:30:04 -0300 Subject: [PATCH 3/3] Add comment on snap env var --- snap/snapcraft.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 41f14cb05c..419f1cb442 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -12,6 +12,7 @@ apps: barrier: command: desktop-launch barrier #first run might take longer environment: + # Fallback to XWayland if running in a Wayland session. DISABLE_WAYLAND: 1 desktop: usr/share/applications/barrier.desktop common-id: com.github.debauchee.barrier