Skip to content

Commit 9a886de

Browse files
Snap is compiling but has permission issue on gnome (flameshot-org#3991)
1 parent 639b1ee commit 9a886de

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

snapcraft.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name: flameshot
44
adopt-info: flameshot
5-
base: core22
5+
base: core24
66
summary: Powerful yet simple to use screenshot software
77
description: |
88
A powerful open source screenshot and annotation tool for Linux, Flameshot
@@ -13,34 +13,43 @@ description: |
1313
grade: stable
1414
confinement: strict
1515
compression: lzo
16-
architectures:
17-
- build-on: amd64
16+
platforms:
17+
amd64:
18+
build-on: amd64
19+
build-for: amd64
20+
1821

1922
apps:
2023
flameshot:
2124
command: usr/bin/flameshot
2225
desktop: usr/share/applications/org.flameshot.Flameshot.desktop
2326
extensions:
24-
- kde-neon
27+
- kde-neon-6
2528
environment:
26-
DISABLE_WAYLAND: 1
2729
XDG_DATA_DIRS: $SNAP/share:$XDG_DATA_DIRS
30+
QT_QPA_PLATFORM: wayland
2831
QT_QPA_PLATFORMTHEME: gtk3
2932
slots: [dbus-flameshot]
3033
plugs:
3134
- home
35+
- desktop
36+
- wayland
37+
- gsettings
3238
- removable-media
3339
- network
3440
- network-bind
3541

3642
parts:
3743
flameshot:
44+
#source: ./
3845
source: https://github.com/flameshot-org/flameshot.git
3946
plugin: cmake
47+
build-packages:
48+
- git
4049
cmake-parameters:
41-
- -DFLAMESHOT_ICON=/snap/flameshot/current/usr/share/icons/hicolor/scalable/apps/flameshot.svg
42-
- -DCMAKE_INSTALL_PREFIX=/usr
43-
- -DUSE_WAYLAND_CLIPBOARD=1
50+
- -DFLAMESHOT_ICON=/snap/flameshot/current/usr/share/icons/hicolor/scalable/apps/flameshot.svg
51+
- -DCMAKE_INSTALL_PREFIX=/usr
52+
- -DUSE_WAYLAND_CLIPBOARD=1
4453
source-type: git
4554
override-pull: |
4655
craftctl default

0 commit comments

Comments
 (0)