[debian-edu-commits] debian-edu/ 08/09: update-debian-edu-artwork-(lines|softwaves|spacefun): Add lockscreen settings.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Thu Dec 22 22:26:08 UTC 2016


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

schweer-guest pushed a commit to branch master
in repository debian-edu-artwork.

commit 46c3b457afb8d2e86df865e82d861a014d62b331
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Thu Dec 22 22:51:04 2016 +0100

    update-debian-edu-artwork-(lines|softwaves|spacefun): Add lockscreen settings.
---
 debian/update-debian-edu-artwork-lines     | 16 ++++++++++++++++
 debian/update-debian-edu-artwork-softwaves | 16 ++++++++++++++++
 debian/update-debian-edu-artwork-spacefun  | 16 ++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/debian/update-debian-edu-artwork-lines b/debian/update-debian-edu-artwork-lines
index 4529e0a..a92ed97 100755
--- a/debian/update-debian-edu-artwork-lines
+++ b/debian/update-debian-edu-artwork-lines
@@ -117,6 +117,20 @@ set_plymouth_theme() {
     fi
 }
 
+## Lockscreen
+set_lockscreen() {
+    update-alternatives --install \
+        /usr/share/images/desktop-base/desktop-lockscreen.xml \
+        desktop-lockscreen.xml \
+        /usr/share/desktop-base/debian-edu-${EDUTHEME}-theme/lockscreen/gnome-background.xml 50
+}
+
+restore_lockscreen() {
+    update-alternatives --remove \
+        desktop-lockscreen.xml \
+        /usr/share/desktop-base/debian-edu-${EDUTHEME}-theme/lockscreen/gnome-background.xml
+}
+
 case "$1" in
 	configure)
 		if [ -x /usr/sbin/update-debian-edu-artwork-spacefun ]; then
@@ -131,6 +145,7 @@ case "$1" in
 		change_desktop_background
 		compile_gschemas
 		set_plymouth_theme
+		set_lockscreen
 	;;
 	remove)
 		restore_active_theme
@@ -138,5 +153,6 @@ case "$1" in
 		restore_grub_background
 		restore_desktop_background
 		compile_gschemas
+		restore_lockscreen
 	;;
 esac
diff --git a/debian/update-debian-edu-artwork-softwaves b/debian/update-debian-edu-artwork-softwaves
index 76faf63..24b7157 100755
--- a/debian/update-debian-edu-artwork-softwaves
+++ b/debian/update-debian-edu-artwork-softwaves
@@ -125,6 +125,20 @@ set_plymouth_theme() {
     fi
 }
 
+## Lockscreen
+set_lockscreen() {
+    update-alternatives --install \
+        /usr/share/images/desktop-base/desktop-lockscreen.xml \
+        desktop-lockscreen.xml \
+        /usr/share/desktop-base/debian-edu-${EDUTHEME}-theme/lockscreen/gnome-background.xml 50
+}
+
+restore_lockscreen() {
+    update-alternatives --remove \
+        desktop-lockscreen.xml \
+        /usr/share/desktop-base/debian-edu-${EDUTHEME}-theme/lockscreen/gnome-background.xml
+}
+
 case "$1" in
 	configure)
 		if [ -x /usr/sbin/update-debian-edu-artwork-spacefun ]; then
@@ -139,6 +153,7 @@ case "$1" in
 		change_desktop_background
 		compile_gschemas
 		set_plymouth_theme
+		set_lockscreen
 	;;
 	remove)
 		restore_active_theme
@@ -146,5 +161,6 @@ case "$1" in
 		restore_grub_background
 		restore_desktop_background
 		compile_gschemas
+		restore_lockscreen
 	;;
 esac
diff --git a/debian/update-debian-edu-artwork-spacefun b/debian/update-debian-edu-artwork-spacefun
index a8caa3f..47c04a1 100755
--- a/debian/update-debian-edu-artwork-spacefun
+++ b/debian/update-debian-edu-artwork-spacefun
@@ -119,6 +119,20 @@ set_plymouth_theme() {
     fi
 }
 
+## Lockscreen
+set_lockscreen() {
+    update-alternatives --install \
+        /usr/share/images/desktop-base/desktop-lockscreen.xml \
+        desktop-lockscreen.xml \
+        /usr/share/desktop-base/debian-edu-${EDUTHEME}-theme/lockscreen/gnome-background.xml 50
+}
+
+restore_lockscreen() {
+    update-alternatives --remove \
+        desktop-lockscreen.xml \
+        /usr/share/desktop-base/debian-edu-${EDUTHEME}-theme/lockscreen/gnome-background.xml
+}
+
 case "$1" in
 	configure)
 		if [ -x /usr/sbin/update-debian-edu-artwork-softwaves ]; then
@@ -133,6 +147,7 @@ case "$1" in
 		change_desktop_background
 		compile_gschemas
 		set_plymouth_theme
+		set_lockscreen
 	;;
 	remove)
 		restore_active_theme
@@ -140,5 +155,6 @@ case "$1" in
 		restore_grub_background
 		restore_desktop_background
 		compile_gschemas
+		restore_lockscreen
 	;;
 esac

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-artwork.git



More information about the debian-edu-commits mailing list