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)
if [ ! -f /root/.trinity/share/config/kpersonalizerrc ]; then
[ -d /root/.trinity/share/config ] || [ -d /root/.trinity/share/config ] ||
mkdir -p /root/.trinity/share/config mkdir -p /root/.trinity/share/config
cat >/root/.trinity/share/config/kpersonalizerrc <<kpersonalizerrc
[General] if [ ! -f /root/.trinity/share/config/kdeglobals ]; then
FirstLogin=false RELEASE_VERSION="$(/opt/trinity/bin/tde-config --version | sed -n 's|^TDE: ||p')"
kpersonalizerrc /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
/opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kpersonalizerrc \
--group "General" \
--key "FirstLogin" \
--type bool "false"
fi fi
;; ;;

Loading…
Cancel
Save