diff options
author | Slávek Banko <[email protected]> | 2020-04-22 20:03:15 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-04-22 20:04:46 +0200 |
commit | edc1bf4a4939ceb6ce016e01c8fb5b81a800eb96 (patch) | |
tree | ed8827cbfcb6781581c22720f18ee712510a3967 /debian/_base/metapackages/trinity-slax | |
parent | 6ff4a8e8bdcb1165077992c18e2115014a70faec (diff) | |
download | tde-packaging-edc1bf4a4939ceb6ce016e01c8fb5b81a800eb96.tar.gz tde-packaging-edc1bf4a4939ceb6ce016e01c8fb5b81a800eb96.zip |
DEB trinity-slax: Create an initial kdeglobals
to avoid displaying Release Notes on every clean boot.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 86c9c99e9054e091afa56579d5ab441cac45e8f2)
Diffstat (limited to 'debian/_base/metapackages/trinity-slax')
-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 ;; |