summaryrefslogtreecommitdiffstats
path: root/lxqt
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-07-07 20:54:12 +0000
committer Eric Hameleers <alien@slackware.com>2019-07-07 20:54:12 +0000
commit26fea14b25bd19317c36c28eda0f0aeb9053842a (patch)
tree7d0fd55d95858075f34de2af6d3434d1891659a9 /lxqt
parent6eb1179b56c27e58580594aea025c4586e43476f (diff)
downloadasb-26fea14b25bd19317c36c28eda0f0aeb9053842a.tar.gz
asb-26fea14b25bd19317c36c28eda0f0aeb9053842a.tar.xz
lxqt: updated doinst.sh scripts
Diffstat (limited to 'lxqt')
-rw-r--r--lxqt/build/doinst.sh/libfm15
-rw-r--r--lxqt/build/doinst.sh/lximage-qt5
-rw-r--r--lxqt/build/doinst.sh/lxqt-about5
-rw-r--r--lxqt/build/doinst.sh/lxqt-common26
-rw-r--r--lxqt/build/doinst.sh/lxqt-config5
-rw-r--r--lxqt/build/doinst.sh/lxqt-config-randr5
-rw-r--r--lxqt/build/doinst.sh/lxqt-panel23
-rw-r--r--lxqt/build/doinst.sh/pcmanfm-qt9
-rw-r--r--lxqt/build/doinst.sh/qterminal5
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
+