diff options
-rw-r--r-- | lxqt/build/doinst.sh/libfm | 15 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/lximage-qt | 5 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/lxqt-about | 5 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/lxqt-common | 26 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/lxqt-config | 5 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/lxqt-config-randr | 5 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/lxqt-panel | 23 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/pcmanfm-qt | 9 | ||||
-rw-r--r-- | lxqt/build/doinst.sh/qterminal | 5 |
9 files changed, 98 insertions, 0 deletions
diff --git a/lxqt/build/doinst.sh/libfm b/lxqt/build/doinst.sh/libfm new file mode 100644 index 00000000..dad23108 --- /dev/null +++ b/lxqt/build/doinst.sh/libfm @@ -0,0 +1,15 @@ +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/xdg/libfm/libfm.conf.new + diff --git a/lxqt/build/doinst.sh/lximage-qt b/lxqt/build/doinst.sh/lximage-qt new file mode 100644 index 00000000..e376b59a --- /dev/null +++ b/lxqt/build/doinst.sh/lximage-qt @@ -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/lxqt/build/doinst.sh/lxqt-about b/lxqt/build/doinst.sh/lxqt-about new file mode 100644 index 00000000..e376b59a --- /dev/null +++ b/lxqt/build/doinst.sh/lxqt-about @@ -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/lxqt/build/doinst.sh/lxqt-common b/lxqt/build/doinst.sh/lxqt-common new file mode 100644 index 00000000..a8308365 --- /dev/null +++ b/lxqt/build/doinst.sh/lxqt-common @@ -0,0 +1,26 @@ +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/xdg/lxqt/windowmanagers.conf.new +config etc/xdg/lxqt/lxqt.conf.new +config etc/xdg/lxqt/session.conf.new +config etc/xdg/pcmanfm-qt/lxqt/settings.conf.new + +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/lxqt/build/doinst.sh/lxqt-config b/lxqt/build/doinst.sh/lxqt-config new file mode 100644 index 00000000..e376b59a --- /dev/null +++ b/lxqt/build/doinst.sh/lxqt-config @@ -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/lxqt/build/doinst.sh/lxqt-config-randr b/lxqt/build/doinst.sh/lxqt-config-randr new file mode 100644 index 00000000..e376b59a --- /dev/null +++ b/lxqt/build/doinst.sh/lxqt-config-randr @@ -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/lxqt/build/doinst.sh/lxqt-panel b/lxqt/build/doinst.sh/lxqt-panel new file mode 100644 index 00000000..720d6c22 --- /dev/null +++ b/lxqt/build/doinst.sh/lxqt-panel @@ -0,0 +1,23 @@ +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/xdg/lxqt/panel.conf.new + +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/lxqt/build/doinst.sh/pcmanfm-qt b/lxqt/build/doinst.sh/pcmanfm-qt new file mode 100644 index 00000000..d7006c70 --- /dev/null +++ b/lxqt/build/doinst.sh/pcmanfm-qt @@ -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/lxqt/build/doinst.sh/qterminal b/lxqt/build/doinst.sh/qterminal new file mode 100644 index 00000000..e376b59a --- /dev/null +++ b/lxqt/build/doinst.sh/qterminal @@ -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 + |