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

@ -3,13 +3,21 @@
case "$1" in case "$1" in
configure) 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 if [ ! -f /root/.trinity/share/config/kpersonalizerrc ]; then
[ -d /root/.trinity/share/config ] || /opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kpersonalizerrc \
mkdir -p /root/.trinity/share/config --group "General" \
cat >/root/.trinity/share/config/kpersonalizerrc <<kpersonalizerrc --key "FirstLogin" \
[General] --type bool "false"
FirstLogin=false
kpersonalizerrc
fi fi
;; ;;

Loading…
Cancel
Save