From b2daf27419583c628232c8ce18dca382f20f0d62 Mon Sep 17 00:00:00 2001 From: Patrick Eigensatz Date: Sun, 20 Oct 2019 12:53:27 +0200 Subject: [PATCH] Packaging: Snap: Added .desktop file Issue #37 --- packaging/snap/snapcraft.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/snap/snapcraft.yaml b/packaging/snap/snapcraft.yaml index c661a7c..c41d062 100644 --- a/packaging/snap/snapcraft.yaml +++ b/packaging/snap/snapcraft.yaml @@ -30,6 +30,9 @@ parts: cd ../.. sed -i 's/target.path = \/usr\/bin/target.path = \/snap\/parts\/qjournalctl\/install\/usr\/bin/' qjournalctl.pro + sed -i 's/desktop-file.path = \/usr\/share\/applications/desktop-file.path = \/snap\/parts\/qjournalctl\/install\/usr\/share\/applications/' qjournalctl.pro + sed -i 's/desktop-icon.path = \/usr\/share\/pixmaps/desktop-icon.path = \/snap\/parts\/qjournalctl\/install\/usr\/share\/pixmaps/' qjournalctl.pro + PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/snap/parts/qjournalctl/install/lib/pkgconfig/ QT_SELECT=qt5 qmake qjournalctl.pro -r -spec linux-g++ CONFIG+=release QMAKE_LIBDIR=/snap/parts/qjournalctl/install/lib/ make install -j$(nproc) @@ -47,4 +50,5 @@ parts: apps: qjournalctl: command: desktop-launch qjournalctl + desktop: /usr/share/applications/qjournalctl.desktop