[neon/snap-packaging/snapcraft-desktop-integration/work.core24] kde-neon-6: try to fix snaps

Scarlett Moore null at kde.org
Thu Jul 2 17:04:52 BST 2026


Git commit c18b343c5d1aeff071612a7d3dff5e9182d97b26 by Scarlett Moore.
Committed on 02/07/2026 at 16:04.
Pushed by scarlettmoore into branch 'work.core24'.

try to fix snaps

M  +13   -4    kde-neon-6/launcher-specific

https://invent.kde.org/neon/snap-packaging/snapcraft-desktop-integration/-/commit/c18b343c5d1aeff071612a7d3dff5e9182d97b26

diff --git a/kde-neon-6/launcher-specific b/kde-neon-6/launcher-specific
index 5af5604..3ffded4 100644
--- a/kde-neon-6/launcher-specific
+++ b/kde-neon-6/launcher-specific
@@ -23,21 +23,22 @@ append_dir LD_LIBRARY_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/blas"
 # lapack
 append_dir LD_LIBRARY_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/lapack"
 
+# everything that broke with snapcraft 9
+append_dir LD_LIBRARY_PATH "$SNAP/usr/lib/$ARCH"
+append_dir LD_LIBRARY_PATH "$SNAP/usr/lib"
+
 # lxqt-support
 append_dir LD_LIBRARY_PATH "$SNAP/lxqt-support/usr/lib/$ARCH"
 
 # Add QT_PLUGIN_PATH (Qt Modules).
 append_dir QT_PLUGIN_PATH "$SNAP/usr/lib/$ARCH/qt6/plugins"
-append_dir QT_PLUGIN_PATH "$SNAP/usr/lib/$ARCH/plugins"
 append_dir QT_PLUGIN_PATH "$SNAP/usr/lib/$ARCH"
 append_dir QT_PLUGIN_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/qt6/plugins"
-append_dir QT_PLUGIN_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/plugins"
 append_dir QT_PLUGIN_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/"
 append_dir QT_PLUGIN_PATH "$SNAP/lxqt-support/usr/lib/$ARCH/qt6/plugins"
 # And QML2_IMPORT_PATH (Qt Modules).
 append_dir QML2_IMPORT_PATH "$SNAP/usr/lib/$ARCH/qt6/qml"
 append_dir QML2_IMPORT_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/qt6/qml"
-append_dir QML2_IMPORT_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/qml"
 
 # Qt style breeze
 append_dir QT_STYLE_OVERRIDE "Breeze"
@@ -51,7 +52,7 @@ export ALSA_CONFIG_PATH="$SNAP_DESKTOP_RUNTIME/etc/asound.conf"
 # Removes Qt warning: Could not find a location
 # of the system Compose files
 export QTCOMPOSE="$SNAP_DESKTOP_RUNTIME/usr/share/X11/locale"
-export QT_XKB_CONFIG_ROOT="$SNAP_DESKTOP_RUNTIME/usr/share/X11/xkb"
+export QT_XKB_CONFIG_ROOT="/usr/share/X11/xkb"
 
 # KIO specific
 # Directly fork slaves.
@@ -62,6 +63,14 @@ export KF6_LIBEXEC_DIR="$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/libexec/kf6"
 # Add path to VLC plugins
 export VLC_PLUGIN_PATH="$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/vlc/plugins"
 
+if [ -e "$SNAP_DESKTOP_RUNTIME/usr/share/i18n" ]; then
+    export I18NPATH="$SNAP_DESKTOP_RUNTIME/usr/share/i18n"
+    locpath="$XDG_DATA_HOME/locale"
+    ensure_dir_exists "$locpath"
+    export LOCPATH="$locpath:/usr/lib/locale"
+    LC_ALL=C.UTF-8 async_exec "$SNAP_DESKTOP_RUNTIME/snap/command-chain/locale-gen"
+fi
+
 # Kvantum configuration folder
 KVANTUM_CONFIG_PATH="$XDG_CONFIG_HOME/Kvantum"
 if [ ! -L "$KVANTUM_CONFIG_PATH" ] && [ -d "$SNAP_REAL_HOME/.config/Kvantum" ]; then


More information about the Neon-commits mailing list