[neon/snap-packaging/okular-snap] /: Try to fix file open crashes by adding schemas and gsettings plug

Scarlett Moore null at kde.org
Wed Apr 16 19:10:46 BST 2025


Git commit 3554822ffc4207584b816248384ef7d6e03c30c6 by Scarlett Moore.
Committed on 16/04/2025 at 18:10.
Pushed by scarlettmoore into branch 'master'.

Try to fix file open crashes by adding schemas and gsettings plug

M  +15   -4    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/okular-snap/-/commit/3554822ffc4207584b816248384ef7d6e03c30c6

diff --git a/snapcraft.yaml b/snapcraft.yaml
index afff222..da9dc0d 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -22,6 +22,7 @@ apps:
       - udisks2
       - dot-pki-nssdb
       - mount-observe
+      - gsettings
 plugs:
   dot-pki-nssdb:
     interface: personal-files
@@ -46,6 +47,20 @@ package-repositories:
     url: http://origin.archive.neon.kde.org/user
     key-server: keyserver.ubuntu.com
 parts:
+  gsettings-desktop-schemas:
+    source: https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas.git
+    source-tag: '42.0'
+    source-depth: 1
+    plugin: meson
+    meson-parameters:
+      - --prefix=/usr
+      - -Doptimization=3
+      - -Ddebug=true
+    override-build: |
+      set -eux
+      craftctl default
+      PC=$CRAFT_PART_INSTALL/usr/share/pkgconfig/gsettings-desktop-schemas.pc
+      sed -i 's#-I/usr#-I${prefix}#' $PC
   launchers:
     source: snap/local/launchers
     plugin: dump
@@ -96,9 +111,6 @@ parts:
       - libdouble-conversion3
       - libfontconfig1
       - libfreetype6
-      - libgl1
-      - libglvnd0
-      - libglx0
       - libgraphite2-3
       - libgssapi3-heimdal
       - libharfbuzz0b
@@ -208,7 +220,6 @@ parts:
       - libtiff6
       - libxkbcommon0
       - libmarkdown2
-      - xdg-desktop-portal
       - libfuse3-3
       - libspeechd2
       - speech-dispatcher


More information about the Neon-commits mailing list