fix: flatpak enhancement

* add network support
* add device=dri for wayland
* add notification access
* system Tray Icon
This commit is contained in:
Ahmed Zetao Yang
2020-09-14 16:49:46 +08:00
committed by borgmanJeremy
parent 5b8d0eeca5
commit 7a8853def7

View File

@@ -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