From bad0373bbb3bcc451163bdb02de6746a1a14e81e Mon Sep 17 00:00:00 2001 From: Maximiliano Bertacchini Date: Wed, 10 Jul 2019 17:16:26 +0000 Subject: [PATCH] Add desktop entry with an app icon. --- snap/snapcraft.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index bf0a0f5a..277d5a8e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -13,6 +13,7 @@ confinement: strict # use 'strict' once you have the right plugs and slots apps: barrier: command: desktop-launch barrier #first run might take longer + desktop: usr/share/applications/barrier.desktop plugs: &plugs - desktop - desktop-legacy @@ -41,6 +42,8 @@ parts: barrier: source: . plugin: cmake + configflags: + - "-DCMAKE_INSTALL_PREFIX=/usr" build-packages: - xorg-dev - libcurl4-openssl-dev @@ -68,3 +71,9 @@ parts: - libavahi-common3 - libavahi-compat-libdnssd1 after: [desktop-qt5] + + fix-icon: + plugin: nil + override-build: + sed -i 's|Icon=barrier|Icon=/usr/share/icons/hicolor/scalable/apps/barrier.svg|' $SNAPCRAFT_STAGE/usr/share/applications/barrier.desktop + after: [barrier]