[X2Go-Commits] [x2gothinclient] 01/01: install desktop-background via alternatives system

git-admin at x2go.org git-admin at x2go.org
Tue Aug 26 16:58:49 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gothinclient.

commit c98473e8b3fc08aa93e64d77799beb225609a4ed
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 26 16:56:23 2014 +0200

    install desktop-background via alternatives system
---
 debian/x2gothinclient-minidesktop.postinst         |    6 +++
 debian/x2gothinclient-minidesktop.prerm            |   47 ++++++++++++++++++++
 .../19_x2gothinclient-minidesktop.gschema.override |    3 --
 3 files changed, 53 insertions(+), 3 deletions(-)

diff --git a/debian/x2gothinclient-minidesktop.postinst b/debian/x2gothinclient-minidesktop.postinst
index 50876cc..9a79508 100755
--- a/debian/x2gothinclient-minidesktop.postinst
+++ b/debian/x2gothinclient-minidesktop.postinst
@@ -20,6 +20,12 @@ set -e
 case "$1" in
 	configure)
 		glib-compile-schemas /usr/share/glib-2.0/schemas/
+
+		update-alternatives --install
+		    /usr/share/images/desktop-base/desktop-background \
+		    desktop-background \
+		    /usr/share/backgrounds/x2go/x2gothinclient-minidesktop_background.svg 70
+
 		;;
 	abort-upgrade|abort-remove|abort-deconfigure)
 		;;
diff --git a/debian/x2gothinclient-minidesktop.prerm b/debian/x2gothinclient-minidesktop.prerm
new file mode 100755
index 0000000..95b293f
--- /dev/null
+++ b/debian/x2gothinclient-minidesktop.prerm
@@ -0,0 +1,47 @@
+#! /bin/sh
+
+# prerm script for x2gothinclient-minidesktop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# source debconf's configuration module
+. /usr/share/debconf/confmodule
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#        <package-being-installed> <version> `removing'
+#        <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+if [ "$1" = "remove" -o "$1" = "deconfigure" ]; then
+
+	update-alternatives --remove desktop-background /usr/share/backgrounds/x2go/x2gothinclient-minidesktop_background.svg
+
+fi
+
+
+case "$1" in
+	remove)
+		:
+		;;
+	deconfigure|upgrade|failed-upgrade)
+		:
+		;;
+	*) echo "$0: didn't understand being called with \`$1'" 1>&2
+		exit 1
+		;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/minidesktop/schema-overrides/19_x2gothinclient-minidesktop.gschema.override b/minidesktop/schema-overrides/19_x2gothinclient-minidesktop.gschema.override
index 786c891..7cb5f75 100644
--- a/minidesktop/schema-overrides/19_x2gothinclient-minidesktop.gschema.override
+++ b/minidesktop/schema-overrides/19_x2gothinclient-minidesktop.gschema.override
@@ -1,6 +1,3 @@
-[org.mate.background]
-picture-filename='/usr/share/backgrounds/x2go/x2gothinclient-minidesktop_background.svg'
-
 [org.mate.panel]
 default-layout="x2gothinclient-minidesktop"
 

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gothinclient.git


More information about the x2go-commits mailing list