summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-22 20:03:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-22 20:04:46 +0200
commitedc1bf4a4939ceb6ce016e01c8fb5b81a800eb96 (patch)
treeed8827cbfcb6781581c22720f18ee712510a3967 /debian
parent6ff4a8e8bdcb1165077992c18e2115014a70faec (diff)
downloadtde-packaging-edc1bf4a4939ceb6ce016e01c8fb5b81a800eb96.tar.gz
tde-packaging-edc1bf4a4939ceb6ce016e01c8fb5b81a800eb96.zip
DEB trinity-slax: Create an initial kdeglobals
to avoid displaying Release Notes on every clean boot. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 86c9c99e9054e091afa56579d5ab441cac45e8f2)
Diffstat (limited to 'debian')
-rw-r--r--debian/_base/metapackages/trinity-slax/debian/postinst20
1 files changed, 14 insertions, 6 deletions
diff --git a/debian/_base/metapackages/trinity-slax/debian/postinst b/debian/_base/metapackages/trinity-slax/debian/postinst
index 9576c7390..ca68a2b8e 100644
--- a/debian/_base/metapackages/trinity-slax/debian/postinst
+++ b/debian/_base/metapackages/trinity-slax/debian/postinst
@@ -3,13 +3,21 @@
case "$1" in
configure)
+ [ -d /root/.trinity/share/config ] ||
+ mkdir -p /root/.trinity/share/config
+
+ if [ ! -f /root/.trinity/share/config/kdeglobals ]; then
+ RELEASE_VERSION="$(/opt/trinity/bin/tde-config --version | sed -n 's|^TDE: ||p')"
+ /opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kdeglobals \
+ --group "Release Notes" \
+ --key "$RELEASE_VERSION" \
+ --type bool "true"
+ fi
if [ ! -f /root/.trinity/share/config/kpersonalizerrc ]; then
- [ -d /root/.trinity/share/config ] ||
- mkdir -p /root/.trinity/share/config
- cat >/root/.trinity/share/config/kpersonalizerrc <<kpersonalizerrc
-[General]
-FirstLogin=false
-kpersonalizerrc
+ /opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kpersonalizerrc \
+ --group "General" \
+ --key "FirstLogin" \
+ --type bool "false"
fi
;;