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 86c9c99e90)
pull/92/head
Slávek Banko 5 years ago
parent 6ff4a8e8bd
commit edc1bf4a49
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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
;;

Loading…
Cancel
Save