diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-04-22 20:03:15 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-22 20:03:58 +0200 |
commit | 86c9c99e9054e091afa56579d5ab441cac45e8f2 (patch) | |
tree | a0ecd9eeadacb55e212a73c67cac5b709aa7282f | |
parent | 8d146a12a7b3772d0f38f036a2c0e362b33c8866 (diff) | |
download | tde-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>
-rw-r--r-- | debian/_base/metapackages/trinity-slax/debian/postinst | 20 |
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 ;; |