summaryrefslogtreecommitdiffstats
path: root/debian/_base/metapackages/trinity-slax
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:03:58 +0200
commit86c9c99e9054e091afa56579d5ab441cac45e8f2 (patch)
treea0ecd9eeadacb55e212a73c67cac5b709aa7282f /debian/_base/metapackages/trinity-slax
parent8d146a12a7b3772d0f38f036a2c0e362b33c8866 (diff)
downloadtde-packaging-86c9c99e9054e091afa56579d5ab441cac45e8f2.tar.gz
tde-packaging-86c9c99e9054e091afa56579d5ab441cac45e8f2.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>
Diffstat (limited to 'debian/_base/metapackages/trinity-slax')
-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
;;