diff --git a/icewm-preferences.patch b/icewm-preferences.patch index 98c17ee..f73e4be 100644 --- a/icewm-preferences.patch +++ b/icewm-preferences.patch @@ -71,7 +71,7 @@ Index: src/preferences # Desktop background image -# DesktopBackgroundImage="" -+DesktopBackgroundImage="/usr/share/wallpapers/default-1600x1200.jpg" ++DesktopBackgroundImage="BRANDING_PICTURE" # Color to announce for semi-transparent windows # DesktopTransparencyColor="" diff --git a/icewm.changes b/icewm.changes index c2cf01f..09e8488 100644 --- a/icewm.changes +++ b/icewm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 8 12:49:38 UTC 2016 - tchvatal@suse.com + +- Update prefferences patch to point to correct wallpaper on the disk + based on openSUSE/SLE branding package + ------------------------------------------------------------------- Tue Mar 8 12:25:59 UTC 2016 - tchvatal@suse.com diff --git a/icewm.spec b/icewm.spec index 75cc30a..2a7aecd 100644 --- a/icewm.spec +++ b/icewm.spec @@ -176,6 +176,15 @@ make %{?_smp_mflags} clean make %{?_smp_mflags} # Patch generated lib/preferences file. patch -p1 -i %{PATCH99} +# And use proper branding +%if 0%{?is_opensuse} +wallpaper="openSUSEdefault" +%else +wallpaper="SLEdefault" +%endif +sed -i \ + -e "s:BRANDING_PICTURE:/usr/share/wallpapers/$wallpaper/contents/images/1920x1080.jpg:" \ + src/preferences %install %make_install