unity-greeter: fix wallpaper setup on release upgrade
This commit is contained in:
parent
fe12ec18dd
commit
96811587ae
2 changed files with 5 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<schemalist gettext-domain="unity-greeter">
|
<schemalist gettext-domain="unity-greeter">
|
||||||
<schema id="com.canonical.unity-greeter" path="/com/canonical/unity-greeter/">
|
<schema id="com.canonical.unity-greeter" path="/com/canonical/unity-greeter/">
|
||||||
<key name="background" type="s">
|
<key name="background" type="s">
|
||||||
<default>'/usr/share/backgrounds/nabia.jpg'</default>
|
<default>'/usr/share/backgrounds/CODENAME'</default>
|
||||||
<summary>Background file to use, either an image path or a color (e.g. #772953)</summary>
|
<summary>Background file to use, either an image path or a color (e.g. #772953)</summary>
|
||||||
</key>
|
</key>
|
||||||
<key name="background-color" type="s">
|
<key name="background-color" type="s">
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,16 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=5
|
VERSION=6
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
# Custom settings
|
# Custom settings
|
||||||
cp $DATA/com.canonical.unity-greeter.gschema.xml data
|
cp $DATA/com.canonical.unity-greeter.gschema.xml data
|
||||||
|
|
||||||
|
# Change the background wallpaper correspondingly to the new release along with extension.
|
||||||
|
sed -i "s|CODENAME|$CODENAME.jpg|" data/com.canonical.unity-greeter.gschema.xml
|
||||||
|
|
||||||
# Change the sound theme
|
# Change the sound theme
|
||||||
sed s/ubuntu/freedesktop/g src/unity-greeter.vala -i
|
sed s/ubuntu/freedesktop/g src/unity-greeter.vala -i
|
||||||
sed 's/"system-ready"/"bell"/' src/unity-greeter.vala -i
|
sed 's/"system-ready"/"bell"/' src/unity-greeter.vala -i
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue