From 7a8853def72318aa0284ad9c9d596d7111dfb379 Mon Sep 17 00:00:00 2001 From: Ahmed Zetao Yang Date: Mon, 14 Sep 2020 16:49:46 +0800 Subject: [PATCH] fix: flatpak enhancement * add network support * add device=dri for wayland * add notification access * system Tray Icon --- data/flatpak/org.flameshot.flameshot.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/data/flatpak/org.flameshot.flameshot.yml b/data/flatpak/org.flameshot.flameshot.yml index bc9df9a9..e5d9c57b 100644 --- a/data/flatpak/org.flameshot.flameshot.yml +++ b/data/flatpak/org.flameshot.flameshot.yml @@ -4,16 +4,29 @@ runtime-version: '5.15' sdk: org.kde.Sdk command: flameshot finish-args: + # X11 + XShm access - --share=ipc - --socket=x11 + # Wayland access - --socket=wayland + - --device=dri + # Connectivity + - --share=network + # QtSingleApplication, allow other instances to see log files + - --env=TMPDIR=/var/tmp + # Allow loading/saving files from anywhere - --filesystem=host + # Notification access + - --talk-name=org.freedesktop.Notifications + # System Tray Icon + - --talk-name=org.kde.StatusNotifierWatcher + - --own-name=org.kde.StatusNotifierItem-2-1 modules: - name: flameshot buildsystem: cmake-ninja config-opts: - - -DCMAKE_BUILD_TYPE=RelWithDebInfo + - -DCMAKE_BUILD_TYPE=Release sources: - type: git - url: https://github.com/flameshot-org/flameshot + url: https://github.com/flameshot-org/flameshot.git branch: master