[neon/snap-packaging/snapcraft-desktop-integration/work.core24] command-chain: Add desktop hook

Scarlett Moore null at kde.org
Thu Dec 19 11:19:12 GMT 2024


Git commit 9aac9365804791ee7f1025364d0afd7a775976b4 by Scarlett Moore.
Committed on 19/12/2024 at 11:18.
Pushed by scarlettmoore into branch 'work.core24'.

Add desktop hook

M  +1    -1    command-chain/Makefile
A  +5    -0    command-chain/hooks-configure-desktop

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

diff --git a/command-chain/Makefile b/command-chain/Makefile
index 4ace2fd..b1eaf36 100644
--- a/command-chain/Makefile
+++ b/command-chain/Makefile
@@ -3,7 +3,7 @@
 BIN_DIR := $(DESTDIR)/snap/command-chain
 GPU_WRAPPER :=
 
-scripts = hooks-configure-fonts desktop-launch run $(GPU_WRAPPER)
+scripts = hooks-configure-fonts hooks-configure-desktop desktop-launch run $(GPU_WRAPPER)
 
 *:
 	install -D -m755 "$@" "$(BIN_DIR)"/"$@"
diff --git a/command-chain/hooks-configure-desktop b/command-chain/hooks-configure-desktop
new file mode 100644
index 0000000..3431e6c
--- /dev/null
+++ b/command-chain/hooks-configure-desktop
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -- "${SNAP}/kf6/command-chain/hooks-configure-fonts" "$@"
+# shellcheck source=/dev/null
+source "${SNAP}/snap/command-chain/run"


More information about the Neon-commits mailing list