diff options
Diffstat (limited to 'source/kde/kde/doinst.sh')
57 files changed, 325 insertions, 0 deletions
diff --git a/source/kde/kde/doinst.sh/blinken b/source/kde/kde/doinst.sh/blinken new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/blinken @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/bluedevil b/source/kde/kde/doinst.sh/bluedevil new file mode 100644 index 000000000..85ff4d866 --- /dev/null +++ b/source/kde/kde/doinst.sh/bluedevil @@ -0,0 +1,4 @@ +#!/bin/sh +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi diff --git a/source/kde/kde/doinst.sh/cantor b/source/kde/kde/doinst.sh/cantor new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/cantor @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/gwenview b/source/kde/kde/doinst.sh/gwenview new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/gwenview @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/k3b b/source/kde/kde/doinst.sh/k3b new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/k3b @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kalgebra b/source/kde/kde/doinst.sh/kalgebra new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kalgebra @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kalzium b/source/kde/kde/doinst.sh/kalzium new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kalzium @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kamera b/source/kde/kde/doinst.sh/kamera new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kamera @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kanagram b/source/kde/kde/doinst.sh/kanagram new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kanagram @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kate b/source/kde/kde/doinst.sh/kate new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kate @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kaudiocreator b/source/kde/kde/doinst.sh/kaudiocreator new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kaudiocreator @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kbruch b/source/kde/kde/doinst.sh/kbruch new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kbruch @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kcalc b/source/kde/kde/doinst.sh/kcalc new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kcalc @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kcolorchooser b/source/kde/kde/doinst.sh/kcolorchooser new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kcolorchooser @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdeaccessibility b/source/kde/kde/doinst.sh/kdeaccessibility new file mode 100644 index 000000000..22d4849bc --- /dev/null +++ b/source/kde/kde/doinst.sh/kdeaccessibility @@ -0,0 +1,5 @@ + +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdeedu b/source/kde/kde/doinst.sh/kdeedu new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdeedu @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdegraphics b/source/kde/kde/doinst.sh/kdegraphics new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdegraphics @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdelibs b/source/kde/kde/doinst.sh/kdelibs new file mode 100644 index 000000000..d7006c70a --- /dev/null +++ b/source/kde/kde/doinst.sh/kdelibs @@ -0,0 +1,9 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + +if [ -x usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdenetwork b/source/kde/kde/doinst.sh/kdenetwork new file mode 100644 index 000000000..22d4849bc --- /dev/null +++ b/source/kde/kde/doinst.sh/kdenetwork @@ -0,0 +1,5 @@ + +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdepim b/source/kde/kde/doinst.sh/kdepim new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdepim @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdepim-runtime b/source/kde/kde/doinst.sh/kdepim-runtime new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdepim-runtime @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdeplasma-addons b/source/kde/kde/doinst.sh/kdeplasma-addons new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdeplasma-addons @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdesdk b/source/kde/kde/doinst.sh/kdesdk new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdesdk @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdevelop b/source/kde/kde/doinst.sh/kdevelop new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdevelop @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdevplatform b/source/kde/kde/doinst.sh/kdevplatform new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdevplatform @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdewebdev b/source/kde/kde/doinst.sh/kdewebdev new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdewebdev @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kdf b/source/kde/kde/doinst.sh/kdf new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kdf @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kgeography b/source/kde/kde/doinst.sh/kgeography new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kgeography @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/khangman b/source/kde/kde/doinst.sh/khangman new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/khangman @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kig b/source/kde/kde/doinst.sh/kig new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kig @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kinit b/source/kde/kde/doinst.sh/kinit new file mode 100644 index 000000000..27e18004d --- /dev/null +++ b/source/kde/kde/doinst.sh/kinit @@ -0,0 +1,7 @@ +# Re-run the 'setcap' command which fails during package buikding +# (because of a mising DESTDIR?): +if [ -f usr/lib64/kf5/start_kdeinit ]; then + /sbin/setcap CAP_SYS_RESOURCE=+ep usr/lib64/kf5/start_kdeinit +elif [ -f usr/lib/kf5/start_kdeinit ]; then + /sbin/setcap CAP_SYS_RESOURCE=+ep usr/lib/kf5/start_kdeinit +fi diff --git a/source/kde/kde/doinst.sh/kiten b/source/kde/kde/doinst.sh/kiten new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kiten @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/klettres b/source/kde/kde/doinst.sh/klettres new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/klettres @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kmag b/source/kde/kde/doinst.sh/kmag new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kmag @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kmousetool b/source/kde/kde/doinst.sh/kmousetool new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kmousetool @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kmouth b/source/kde/kde/doinst.sh/kmouth new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kmouth @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kmplot b/source/kde/kde/doinst.sh/kmplot new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kmplot @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kolourpaint b/source/kde/kde/doinst.sh/kolourpaint new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kolourpaint @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/konsole b/source/kde/kde/doinst.sh/konsole new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/konsole @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kruler b/source/kde/kde/doinst.sh/kruler new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kruler @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kscreenlocker b/source/kde/kde/doinst.sh/kscreenlocker new file mode 100644 index 000000000..77beeaf1f --- /dev/null +++ b/source/kde/kde/doinst.sh/kscreenlocker @@ -0,0 +1,5 @@ +# Send SIGTERM to any running kscreenlocker_greet after installing +# kcheckpass. This will trigger a restart of kscreenlocker_greet +# which prevents deadlock when migrating Plasma 5.9 -> 5.10. +# See email to distributions@kde.org by Martin Graesslin on Wed, 08 Mar 2017. +killall -TERM kscreenlocker_greet 1>/dev/null 2>/dev/null diff --git a/source/kde/kde/doinst.sh/kstars b/source/kde/kde/doinst.sh/kstars new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kstars @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/ktorrent b/source/kde/kde/doinst.sh/ktorrent new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/ktorrent @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/ktouch b/source/kde/kde/doinst.sh/ktouch new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/ktouch @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/ktp-contact-list b/source/kde/kde/doinst.sh/ktp-contact-list new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/ktp-contact-list @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/ktp-text-ui b/source/kde/kde/doinst.sh/ktp-text-ui new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/ktp-text-ui @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kturtle b/source/kde/kde/doinst.sh/kturtle new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kturtle @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/kwordquiz b/source/kde/kde/doinst.sh/kwordquiz new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/kwordquiz @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/marble b/source/kde/kde/doinst.sh/marble new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/marble @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/okular b/source/kde/kde/doinst.sh/okular new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/okular @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/oxygen-fonts b/source/kde/kde/doinst.sh/oxygen-fonts new file mode 100644 index 000000000..c4bc3b75d --- /dev/null +++ b/source/kde/kde/doinst.sh/oxygen-fonts @@ -0,0 +1,13 @@ + +# There's no need to chroot and do this during initial +# install, since there is a post-install script that +# does the same thing, saving time. +# Update X font indexes and the font cache: +if [ -x /usr/bin/mkfontdir ]; then + /usr/bin/mkfontscale /usr/share/fonts/TTF + /usr/bin/mkfontdir /usr/share/fonts/TTF +fi +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache /usr/share/fonts/TTF +fi + diff --git a/source/kde/kde/doinst.sh/parley b/source/kde/kde/doinst.sh/parley new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/parley @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/powerdevil b/source/kde/kde/doinst.sh/powerdevil new file mode 100644 index 000000000..8745d6291 --- /dev/null +++ b/source/kde/kde/doinst.sh/powerdevil @@ -0,0 +1,18 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +# Move over the new policy files: +config etc/polkit-1/rules.d/10-enable-upower-suspend.rules.new +config etc/polkit-1/rules.d/10-enable-session-power.rules.new +config etc/polkit-1/rules.d/10-enable-powerdevil-discrete-gpu.rules.new 2>/dev/null + diff --git a/source/kde/kde/doinst.sh/rocs b/source/kde/kde/doinst.sh/rocs new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/rocs @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/sddm b/source/kde/kde/doinst.sh/sddm new file mode 100644 index 000000000..6571d9b4d --- /dev/null +++ b/source/kde/kde/doinst.sh/sddm @@ -0,0 +1,19 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/sddm.conf.new +config etc/default/sddm.new +config usr/share/sddm/scripts/Xsession.new +config usr/share/sddm/scripts/Xsetup.new +config usr/share/sddm/scripts/Xstop.new +config usr/share/sddm/scripts/wayland-session.new diff --git a/source/kde/kde/doinst.sh/skanlite b/source/kde/kde/doinst.sh/skanlite new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/skanlite @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + diff --git a/source/kde/kde/doinst.sh/step b/source/kde/kde/doinst.sh/step new file mode 100644 index 000000000..e376b59af --- /dev/null +++ b/source/kde/kde/doinst.sh/step @@ -0,0 +1,5 @@ + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 +fi + |