summaryrefslogtreecommitdiffstats
path: root/debian/_base/metapackages/trinity-slax
diff options
context:
space:
mode:
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
;;