From 59151775301643a2bfaf9bd6c00d4c0d34f8b09f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Sat, 24 Dec 2022 19:52:12 +0000
Subject: [PATCH] ubuntukylin-wallpapers: set default release (aramo) wallpaper

---
 helpers/make-ubuntukylin-default-settings |  3 +++
 helpers/make-ubuntukylin-wallpapers       | 30 +++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 helpers/make-ubuntukylin-wallpapers

diff --git a/helpers/make-ubuntukylin-default-settings b/helpers/make-ubuntukylin-default-settings
index d904f98c..cd6339b5 100644
--- a/helpers/make-ubuntukylin-default-settings
+++ b/helpers/make-ubuntukylin-default-settings
@@ -32,7 +32,10 @@ find -type f |xargs rename s/firefox/abrowser/g
 
 # browser config
 sed -i "s|browser.startup.homepage=.*\"|browser.startup.homepage=about:home\"|" debian/abrowser/trisquelkylin.cfg
+
+# note: the default wallpaper is actually at ubuntukylin-wallpapers: 30_ubuntukylin-wallpapers.gschema.override
 sed -i "s|picture-filename=.*|picture-filename='/usr/share/backgrounds/$CODENAME.jpg'|" debian/20_trisquelkylin-default-settings.gschema.override
+
 #Restore default naming whike keeping the maintainer details.
 sed -i '/trisquel.info/!s|trisquel|ubuntu|g' debian/control
 sed -i '/github.com/s|Trisquel|Ubuntu|g' debian/control
diff --git a/helpers/make-ubuntukylin-wallpapers b/helpers/make-ubuntukylin-wallpapers
new file mode 100644
index 00000000..c6967422
--- /dev/null
+++ b/helpers/make-ubuntukylin-wallpapers
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022 Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+VERSION=0
+
+. ./config
+
+# Tune default background for kylin
+sed -i "s|background=.*|background=\"/usr/share/backgrounds/$CODENAME.jpg\"|" 30_ubuntukylin-wallpapers.gschema.override
+sed -i "s|picture-uri=.*|picture-uri=\'file:///usr/share/backgrounds/$CODENAME.jpg\'|" 30_ubuntukylin-wallpapers.gschema.override
+
+changelog "Rebranding for trisquel."
+
+compile
-- 
GitLab