[Blends-commit] [SCM] ezgo branch, master, updated. c4c461e3d7b1812feaa4bc7944cc2d6c2a179c15

Franklin franklin at goodhorse.idv.tw
Thu Feb 26 15:13:20 UTC 2015


The following commit has been merged in the master branch:
commit 4070eeeb9fbecb4276a768c0f092c0ea2381feae
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Thu Jan 22 22:17:38 2015 +0800

    Add 2560x1600 settings in update-artwork scripts

diff --git a/ezgo-artwork/update-artwork b/ezgo-artwork/update-artwork
index fd31384..9027c4a 100755
--- a/ezgo-artwork/update-artwork
+++ b/ezgo-artwork/update-artwork
@@ -20,13 +20,14 @@ change_desktop_background() {
     update-alternatives --install \
         /usr/share/images/desktop-base/desktop-background \
 	desktop-background \
-	/usr/share/images/desktop-base/ezgo12-wallpaper-1920x1080.png 80
+	/usr/share/images/desktop-base/ezgo12-wallpaper-2560x1600.png 80
     update-alternatives --install \
         /usr/share/images/desktop-base/desktop-background.xml \
 	desktop-background.xml \
 	/usr/share/images/desktop-base/ezgo-wallpaper.xml 30
 
     for WALLPAPER in ezgo12-wallpaper-1366x768.png \
+        ezgo12-wallpaper-2560x1600.png \
 		ezgo12-wallpaper-1920x1080.png ; do
 	update-alternatives --install \
 	        /usr/share/images/desktop-base/desktop-background \
@@ -38,12 +39,13 @@ change_desktop_background() {
 restore_desktop_background() {
     update-alternatives --remove \
 	desktop-background \
-	/usr/share/images/desktop-base/ezgo12-wallpaper-1920x1080.png
+	/usr/share/images/desktop-base/ezgo12-wallpaper-2560x1600.png
     update-alternatives --remove \
 	desktop-background.xml \
 	/usr/share/images/desktop-base/ezgo-wallpaper.xml
 
     for WALLPAPER in ezgo12-wallpaper-1366x768.png \
+        ezgo12-wallpaper-2560x1600.png \
 		ezgo12-wallpaper-1920x1080.png ; do
 	update-alternatives --remove desktop-background \
 		/usr/share/images/desktop-base/$WALLPAPER
@@ -73,6 +75,17 @@ restore_grub_background() {
     fi
 }
 
+install_default_dm_background() {
+    update-alternatives --install \
+        /usr/share/images/desktop-base/ezgo-default-dm.png \
+        ezgo-default-dm.png \
+        /usr/share/ezgo/ezgo-artwork/default-dm/ezgo12-dm-background-1920x1080.png 60
+}
+
+remove_default_dm_background() {
+    update-alternatives --remove ezgo-default-dm.png \
+        /usr/share/ezgo/ezgo-artwork/default-dm/ezgo12-dm-background-1920x1080.png
+}
 
 compile_gschemas() {
     glib-compile-schemas /usr/share/glib-2.0/schemas/
@@ -83,12 +96,14 @@ case "$1" in
     change_ldm_background
     change_grub_background
     change_desktop_background
+    install_default_dm_background
     compile_gschemas
     ;;
   remove)
     restore_ldm_background
     restore_grub_background
     restore_desktop_background
+    remove_default_dm_background
     compile_gschemas
     ;;
 esac

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list