Browse Source

Change how desktop-base handles alternatives

This is a major change which makes updating the art much easier.
* Instead of having to hack on maintainer scripts we have a manifest
file which defines the priority modifiers and the definition of alternatives.
* This is also allows us to reuse the same image file for multiple
purposes without having to keep copies.
suites/experimental
Daniel Reurich 6 years ago
parent
commit
0bcbd1a830
11 changed files with 112 additions and 471 deletions
  1. +4
    -69
      Makefile
  2. +0
    -333
      backgrounds/your-way-blue.svg
  3. +76
    -22
      debian/postinst
  4. +26
    -23
      debian/preinst
  5. +5
    -23
      debian/prerm
  6. +1
    -1
      gnome-backgrounds.xml
  7. BIN
      grub/joy-grub.png
  8. BIN
      grub/lines-grub-1920x1080.png
  9. BIN
      grub/lines-grub.png
  10. BIN
      grub/spacefun-grub-widescreen.png
  11. BIN
      grub/spacefun-grub.png

+ 4
- 69
Makefile View File

@@ -42,63 +42,10 @@ install:
$(INSTALL) kde-wallpaper/10-desktop-base.js $(DESTDIR)/usr/share/kde4/apps/plasma-desktop/init/

# KDE Wallpaper
## Joy
mkdir -p $(DESTDIR)/usr/share/wallpapers/joy
$(INSTALL) kde-wallpaper/joy/metadata.desktop $(DESTDIR)/usr/share/wallpapers/joy/
mkdir -p $(DESTDIR)/usr/share/wallpapers/joy/contents
$(INSTALL) kde-wallpaper/joy/contents/screenshot.png $(DESTDIR)/usr/share/wallpapers/joy/contents/
mkdir -p $(DESTDIR)/usr/share/wallpapers/joy/contents/images
$(INSTALL) $(wildcard kde-wallpaper/joy/contents/images/*) $(DESTDIR)/usr/share/wallpapers/joy/contents/images/
# Inksplat Version
mkdir -p $(DESTDIR)/usr/share/wallpapers/joy_inksplat
$(INSTALL) kde-wallpaper/joy_inksplat/metadata.desktop $(DESTDIR)/usr/share/wallpapers/joy_inksplat/
mkdir -p $(DESTDIR)/usr/share/wallpapers/joy_inksplat/contents
$(INSTALL) kde-wallpaper/joy_inksplat/contents/screenshot.png $(DESTDIR)/usr/share/wallpapers/joy_inksplat/contents/
mkdir -p $(DESTDIR)/usr/share/wallpapers/joy_inksplat/contents/images
$(INSTALL) $(wildcard kde-wallpaper/joy_inksplat/contents/images/*) $(DESTDIR)/usr/share/wallpapers/joy_inksplat/contents/images/
## Lines
mkdir -p $(DESTDIR)/usr/share/wallpapers/Lines
$(INSTALL) kde-wallpaper/Lines/metadata.desktop $(DESTDIR)/usr/share/wallpapers/Lines/
mkdir -p $(DESTDIR)/usr/share/wallpapers/Lines/contents
$(INSTALL) kde-wallpaper/Lines/contents/screenshot.png $(DESTDIR)/usr/share/wallpapers/Lines/contents/
mkdir -p $(DESTDIR)/usr/share/wallpapers/Lines/contents/images
$(INSTALL) $(wildcard kde-wallpaper/Lines/contents/images/*) $(DESTDIR)/usr/share/wallpapers/Lines/contents/images/


# KDM theme
mkdir -p $(DESTDIR)/etc/default/kdm.d
$(INSTALL) kdm-theme/kdm.d/10_desktop-base $(DESTDIR)/etc/default/kdm.d
mkdir -p $(DESTDIR)/usr/share/kde4/apps/kdm/themes/joy
$(INSTALL) $(wildcard kdm-theme/joy/*) $(DESTDIR)/usr/share/kde4/apps/kdm/themes/joy
mkdir -p $(DESTDIR)/usr/share/kde4/apps/kdm/themes/lines
$(INSTALL) $(wildcard kdm-theme/lines/*) $(DESTDIR)/usr/share/kde4/apps/kdm/themes/lines

# KSPLASH themes
## Joy
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy
$(INSTALL) ksplash-theme/joy/Preview.png $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy
$(INSTALL) ksplash-theme/joy/Theme.rc $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1024x768
$(INSTALL) $(wildcard ksplash-theme/joy/1024x768/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1024x768
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1280x800
$(INSTALL) $(wildcard ksplash-theme/joy/1280x800/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1280x800
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1280x1024
$(INSTALL) $(wildcard ksplash-theme/joy/1280x1024/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1280x1024
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1366x768
$(INSTALL) $(wildcard ksplash-theme/joy/1366x768/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1366x768
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1600x1200
$(INSTALL) $(wildcard ksplash-theme/joy/1600x1200/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1600x1200
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1920x1080
$(INSTALL) $(wildcard ksplash-theme/joy/1920x1080/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1920x1080
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1920x1200
$(INSTALL) $(wildcard ksplash-theme/joy/1920x1200/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/joy/1920x1200
## Lines
install -d $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/lines/images
$(INSTALL) $(wildcard ksplash-theme/lines/*.qml) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/lines
$(INSTALL) $(wildcard ksplash-theme/lines/*.png) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/lines
$(INSTALL) $(wildcard ksplash-theme/lines/*.rc) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/lines
$(INSTALL) $(wildcard ksplash-theme/lines/images/*) $(DESTDIR)/usr/share/kde4/apps/ksplash/Themes/lines/images


# Xfce 4.6
mkdir -p $(DESTDIR)/usr/share/desktop-base/profiles/xdg-config/xfce4/xfconf/xfce-perchannel-xml
@@ -110,20 +57,8 @@ install:
$(INSTALL) login/background.svg $(DESTDIR)/usr/share/images/desktop-base/login-background.svg

# grub
$(INSTALL) grub/lines-grub.png $(DESTDIR)/usr/share/images/desktop-base/
$(INSTALL) grub/lines-grub-1920x1080.png $(DESTDIR)/usr/share/images/desktop-base/
$(INSTALL) grub/joy-grub.png $(DESTDIR)/usr/share/images/desktop-base/
$(INSTALL) grub/spacefun-grub.png $(DESTDIR)/usr/share/images/desktop-base/
$(INSTALL) grub/spacefun-grub-widescreen.png $(DESTDIR)/usr/share/images/desktop-base/
$(INSTALL) $(wildcard grub/*.png) $(DESTDIR)/usr/share/images/desktop-base/
$(INSTALL) grub/grub_background.sh $(DESTDIR)/usr/share/desktop-base/

# plymouth
install -d $(DESTDIR)/usr/share/plymouth/themes/spacefun
$(INSTALL) $(wildcard plymouth/spacefun/*) $(DESTDIR)/usr/share/plymouth/themes/spacefun

install -d $(DESTDIR)/usr/share/plymouth/themes/joy
$(INSTALL) $(wildcard plymouth/joy/*) $(DESTDIR)/usr/share/plymouth/themes/joy

install -d $(DESTDIR)/usr/share/plymouth/themes/lines
$(INSTALL) $(wildcard plymouth/lines/*) $(DESTDIR)/usr/share/plymouth/themes/lines
mkdir -p $(DESTDIR)/usr/share/desktop-base/grub-themes/
$(INSTALL) $(wildcard grub/themes/* $(DESTDIR)/usr/share/desktop-base/grub-themes


+ 0
- 333
backgrounds/your-way-blue.svg View File

@@ -1,333 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100%"
height="100%"
viewBox="0 0 2560 1920"
id="svg6214"
version="1.1"
inkscape:version="0.91 r13725"
inkscape:export-filename="/home/centurion/Pictures/devuan-background-640x480"
inkscape:export-xdpi="22.5"
inkscape:export-ydpi="22.5"
sodipodi:docname="devuan-jessie-software-freedom-blue.svg"
enable-background="new">
<defs
id="defs6216">
<linearGradient
id="linearGradient13042">
<stop
style="stop-color:#7a7a7a;stop-opacity:1"
offset="0"
id="stop13044" />
</linearGradient>
<linearGradient
id="Logo"
osb:paint="solid">
<stop
style="stop-color:#343b43;stop-opacity:1"
offset="0"
id="stop12986" />
</linearGradient>
<linearGradient
id="Swoosh"
osb:paint="solid">
<stop
style="stop-color:#838d9d;stop-opacity:1"
offset="0"
id="stop12968" />
</linearGradient>
<linearGradient
id="text"
osb:paint="solid">
<stop
style="stop-color:#1c1e21;stop-opacity:1"
offset="0"
id="stop12962" />
</linearGradient>
<linearGradient
id="Background"
osb:paint="solid">
<stop
style="stop-color:#97a1b0;stop-opacity:1"
offset="0"
id="stop12956" />
</linearGradient>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath7741-5-5">
<path
style="fill:#cccccc;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 781.17578,2204.9575 -77.3086,0 1.4587,0 18.2331,33.5491 -22.6091,27.7144 5.8346,16.7745 74.3913,0 z"
id="path7743-9-54"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath11301">
<path
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:64;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 193.98457,397.87227 c 146.6324,0 293.26476,0 439.89716,0 0,91.64524 0,183.29048 0,274.93572 -146.6324,0 -293.26476,0 -439.89716,0 0,-91.64524 0,-183.29048 0,-274.93572 z"
id="path11303"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath4420">
<rect
style="fill:#5599ff"
id="rect4422"
width="2560"
height="1920"
x="0"
y="-400" />
</clipPath>
<linearGradient
inkscape:collect="always"
xlink:href="#text"
id="linearGradient12964"
x1="398.7648"
y1="382.2023"
x2="1233.257"
y2="382.2023"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#Logo"
id="linearGradient12988"
x1="56.08879"
y1="372.09656"
x2="995.38296"
y2="372.09656"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#Background"
id="linearGradient13040"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#Logo"
id="linearGradient13046"
x1="56.088791"
y1="372.09656"
x2="995.38293"
y2="372.09656"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.2515625"
inkscape:cx="312.04964"
inkscape:cy="481.98758"
inkscape:document-units="px"
inkscape:current-layer="g5005"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1026"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0">
<sodipodi:guide
position="395.05208,1083.6345"
orientation="1,0"
id="guide9354" />
<sodipodi:guide
position="681.96142,1114.5324"
orientation="0,1"
id="guide9356" />
<sodipodi:guide
position="205.50715,797.6376"
orientation="1,0"
id="guide9747" />
<sodipodi:guide
position="179.04032,804.90301"
orientation="0,1"
id="guide9749" />
<sodipodi:guide
position="0,0"
orientation="0,2560"
id="guide4410" />
<sodipodi:guide
position="2560,0"
orientation="-1920,0"
id="guide4412" />
<sodipodi:guide
position="0,2106.8323"
orientation="0,-2560"
id="guide4414" />
<sodipodi:guide
position="0,1920"
orientation="1920,0"
id="guide4416" />
</sodipodi:namedview>
<metadata
id="metadata6219">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
transform="translate(0,400)"
inkscape:label="16:10 - 16:9"
id="g4646"
inkscape:groupmode="layer">
<g
style="display:inline"
inkscape:groupmode="layer"
id="g4967"
inkscape:label="Jessie Dark">
<g
style="display:inline"
inkscape:groupmode="layer"
id="g4969"
inkscape:label="background">
<path
inkscape:connector-curvature="0"
id="dark-bg"
d="m 0,-400 c 853.33331,0 1706.6667,0 2560,0 0,640 0,1280.00003 0,1920 -853.3333,0 -1706.66669,0 -2560,0 C 0,880.00003 0,240 0,-400 Z"
style="opacity:1;fill:url(#linearGradient13040);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:64;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<g
style="display:inline;opacity:1"
inkscape:label="Text: your way"
id="g4985"
inkscape:groupmode="layer">
<text
sodipodi:linespacing="150%"
id="dark-your-way"
y="399.32632"
x="394.25308"
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-size:60px;line-height:150%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans, Ultra-Light';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:url(#text);fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;opacity:1"
xml:space="preserve"><tspan
style="font-size:60px;fill:url(#text);fill-opacity:1"
y="399.32632"
x="394.25308"
id="tspan4989"
sodipodi:role="line">software freedom, your way</tspan></text>
</g>
<g
style="display:inline"
inkscape:label="swoosh"
id="g4997"
inkscape:groupmode="layer">
<g
id="g4398"
clip-path="url(#clipPath4420)"
style="fill:url(#Swoosh);fill-opacity:1;stroke:url(#Swoosh)">
<path
inkscape:connector-curvature="0"
id="path5001"
d="M -27.338666,-944.52386 C 5166.3557,294.90488 253.23816,1302.7505 253.23816,1302.7505 l 158.17516,561.5348 c 0,0 2511.69338,-746.4087 2492.81288,-1491.97795 C 2894.7481,-1.9784235 2134.0566,-635.06627 -27.338666,-944.52386 Z"
style="fill:url(#Swoosh);fill-opacity:1;stroke:url(#Swoosh);stroke-width:0.57134259;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:nodetypes="cccsc" />
<ellipse
cy="1580.64"
cx="360.83383"
style="fill:url(#Swoosh);fill-opacity:1;stroke:url(#Swoosh);stroke-width:2.85842323;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ellipse5003"
rx="304.39618"
ry="293.43149"
inkscape:export-xdpi="89.925163"
inkscape:export-ydpi="89.925163"
transform="matrix(0.99922029,0.03948187,-0.04250166,0.9990964,0,0)" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="g5005"
inkscape:label="logo"
style="display:inline;opacity:1">
<g
transform="matrix(0.52059787,0,0,0.52059787,264.65887,99.712559)"
style="display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-opacity:1"
id="dark-logo">
<path
inkscape:export-ydpi="90.047234"
inkscape:export-xdpi="90.047234"
d="m 439.76931,435.79251 -2.96428,0 -66.99298,-127.48966 2.66785,0 65.80728,125.98962 65.51083,-125.98962 2.37143,0 -66.40013,127.48966 z"
style="font-style:normal;font-variant:normal;font-weight:100;font-stretch:normal;font-size:medium;line-height:150%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Thin';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:19.91197014;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path5009"
inkscape:connector-curvature="0" />
<path
inkscape:export-ydpi="90.047234"
inkscape:export-xdpi="90.047234"
d="m 659.95313,396.22247 q 0,18.48109 -14.51566,29.3086 -14.21941,10.82732 -44.73189,10.82732 -30.80874,0 -45.02815,-10.82732 -14.21941,-10.82751 -14.21941,-29.3086 l 0,-88.4855 2.3699,0 0,88.29894 q 0,17.92101 13.62694,28.375 13.62694,10.45399 43.25072,10.45399 29.62377,0 43.25071,-10.45399 13.62694,-10.45399 13.62694,-28.375 l 0,-88.29894 2.3699,0 0,88.4855 z"
style="font-style:normal;font-variant:normal;font-weight:100;font-stretch:normal;font-size:medium;line-height:150%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Thin';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path5011"
inkscape:connector-curvature="0" />
<path
inkscape:export-ydpi="90.047234"
inkscape:export-xdpi="90.047234"
d="m 765.19793,307.25605 -2.96235,0 -66.94983,129.58325 2.66614,0 65.76477,-128.05875 65.4685,128.05875 2.37005,0 -66.35728,-129.58325 z"
style="font-style:normal;font-variant:normal;font-weight:100;font-stretch:normal;font-size:medium;line-height:150%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Thin';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path5013"
inkscape:connector-curvature="0" />
<path
inkscape:export-ydpi="90.047234"
inkscape:export-xdpi="90.047234"
d="m 985.38296,347.87289 q 0,-18.4813 -14.51565,-29.30861 -14.21943,-10.82731 -44.73187,-10.82731 -30.8087,0 -45.02813,10.82731 -14.21943,10.82731 -14.21943,29.30861 l 0,88.4855 2.37004,0 0,-88.29874 q 0,-17.92121 13.62692,-28.37521 13.62692,-10.45399 43.2506,-10.45399 29.62387,0 43.25079,10.45399 13.62693,10.454 13.62693,28.37521 l 0,88.29874 2.3698,0 0,-88.4855 z"
style="font-style:normal;font-variant:normal;font-weight:100;font-stretch:normal;font-size:medium;line-height:150%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Thin';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path5015"
inkscape:connector-curvature="0" />
<path
clip-path="url(#clipPath7741-5-5)"
sodipodi:nodetypes="scsssccsssssccs"
inkscape:export-ydpi="90.047234"
inkscape:export-xdpi="90.047234"
d="m 738.05192,2212.781 c -7.15406,0 -12.82671,2.5661 -17.01794,7.6984 -4.19122,5.0274 -6.28683,12.9352 -6.28683,23.7233 0,10.8927 2.09561,18.853 6.28683,23.8804 4.19123,5.0274 9.86388,7.5412 17.01794,7.5412 l 35.86793,0 0,-1.257 -35.75949,0 c -6.93726,0 -12.42924,-2.4089 -16.47596,-7.2269 -4.04672,-4.818 -6.07007,-12.4639 -6.07007,-22.9377 0,-10.4739 2.02335,-18.1199 6.07007,-22.9379 4.04672,-4.8179 9.5387,-7.2269 16.47596,-7.2269 l 35.75949,0 0,-1.2569 z"
style="font-style:normal;font-variant:normal;font-weight:100;font-stretch:normal;font-size:medium;line-height:150%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Thin';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:9.99139977;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path5017"
inkscape:connector-curvature="0"
transform="matrix(2.0017215,0,0,2.0017215,-1214.6725,-4120.221)" />
<g
id="g5019"
transform="matrix(0.393421,0,0,0.39342102,-18.268462,177.67167)"
style="display:inline;fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-opacity:1">
<path
inkscape:connector-curvature="0"
id="path5021"
d="m 189.28684,250.35223 c 892.45756,212.97702 48.21287,386.15999 48.21287,386.15999 l 27.18,96.49124 c 0,0 431.5964,-128.25901 428.35207,-256.37377 C 691.40311,412.31436 560.68982,303.52782 189.28684,250.35223 Z"
style="fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:0.57134259;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:nodetypes="cccsc" />
<path
transform="matrix(0.99922029,0.03948187,-0.04250166,0.9990964,0,0)"
style="fill:url(#linearGradient13046);fill-opacity:1;stroke:url(#linearGradient12988);stroke-width:2.85842323;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 325.65844,676.28455 a 52.305866,50.421749 0 0 1 -52.30587,50.42175 52.305866,50.421749 0 0 1 -52.30587,-50.42175 52.305866,50.421749 0 0 1 52.30587,-50.42175 52.305866,50.421749 0 0 1 52.30587,50.42175 z"
id="ellipse5023"
inkscape:connector-curvature="0" />
</g>
</g>
</g>
</g>
</g>
</svg>

+ 76
- 22
debian/postinst View File

@@ -7,19 +7,76 @@ if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
dpkg-maintscript-helper rm_conffile /etc/kde3/kdeglobals 6.0.1 -- "$@"
fi

if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 7; then
update-alternatives --remove desktop-grub /usr/share/images/desktop-base/moreblue-orbit-grub.png
fi
# Lets try to determine the best aspect ratio:
drm="/sys/class/drm"
for d in $drm */status; do
if [ -f "$d/status" ] && [ $(cat $display) = 'connected' ]; then
read dmode < $drm/mode
dwide=${dmode%%x*}
dhigh=${dmode##*x}
if [ $(($wide * 3 )) -gt $(($high * 4)) ]; then
aspect="wide"
elif [ -z $aspect ]||[ $aspect != 'wide' ]; then
aspect="narrow"
fi

if [ ${high} -ge 720 ]; then
size="large"
else
[ -z $size ]||[ $aspect != 'large' ]
size="small"
fi
fi
done
if [ -z $size ]; then size='small'; fi
if [ -z $aspect ]; then aspect='narrow';fi

alt_selector="desktop-background|desktop-background.xml|desktop-splash|grub-background|grub-theme"
prefer_svg="desktop-background desktop-splash"
if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
# Alternatives for the background
while read background priority; do
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/$background $priority
while read mline < "/usr/share/images/desktop-base/images.manifest"; do
set $mline
case $1 in
priority_factor)
name="prio_mod_${2}"
${!name}=${3}
;;
$alt_selector)
if [ -f $2 ]; then
echo "setting up alternative for $2 to $1"
priority=${prio_mod_base};
local i=3
while [ $i -lt $# ] do;
mod="prio_mod_${i}"
$(( $priority += ${!mod} ))
$(( $i++ ))
done
if [ ${2##*.} = "svg" ];
for pref in $prefer_svg; do
if [ $1 = $pref ]; then
$(( $priority += ${prio_mod_svg} ))
fi
done
fi
update-alternatives --install \
/usr/share/images/desktop-base/$1 $1 \
/usr/share/images/desktop-base/$2 $priority

else echo "$f2 doesn't exist. Not setting as an alternative fo r $1"
fi
;;
esac
done


v
update-alternatives --install \
/usr/share/images/desktop-base/$1 $1 \
/usr/share/images/desktop-base/$2 $priority
done << EOF
your-way-blue.svg 70
purpy-narrow-large.svg $narrow_large
EOF

# Set up an alternative for the XML version of the background
@@ -30,8 +87,7 @@ EOF
desktop-background.xml \
/usr/share/images/desktop-base/$desktopbackground $priority
done << EOF
lines.xml 20
joy.xml 10
purpy.xml 20
EOF

# Alternatives for the splash
@@ -41,27 +97,25 @@ EOF
desktop-splash \
/usr/share/images/desktop-base/$splash $priority
done << EOF
spacefun-splash.svg 50
moreblue-orbit-splash.png 40
purpy-narrow-large.svg 70
EOF

# Alternatives for grub
## Favor widescreen / hi-res background for efi installations
num_grub_efi_installed=$(dpkg-query --list "grub-efi*" | grep "^i" | wc -l)
if [ $num_grub_efi_installed -gt 0 ] ; then
lines_grub_prio=15
lines_grub_1920_prio=20
narrow_prio=15
wide_prio=20
else
lines_grub_prio=20
lines_grub_1920_prio=15
narrow_prio=20
wide_prio=15
fi
update-alternatives --install \
/usr/share/images/desktop-base/desktop-grub.png \
desktop-grub \
/usr/share/images/desktop-base/lines-grub.png $lines_grub_prio
/usr/share/images/desktop-base/
grub-background \
/usr/share/images/desktop-base/lines-gddrub.png $lines_grub_prio
update-alternatives --install \
/usr/share/images/desktop-base/desktop-grub.png \
desktop-grub \
grub-background \
/usr/share/images/desktop-base/lines-grub-1920x1080.png $lines_grub_1920_prio

while read background priority; do


+ 26
- 23
debian/preinst View File

@@ -6,31 +6,34 @@ if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
dpkg-maintscript-helper rm_conffile /etc/kde3/kdeglobals 6.0.1 -- "$@"
fi

if [ "${1}" = "upgrade" ]; then
if dpkg --compare-versions ${2} lt 0.3.11 && dpkg --compare-versions ${2} gt 0.3.5; then
update-alternatives --remove gnome-splash \
/usr/share/images/desktop-base/Splash-Debian.png
update-alternatives --remove gnome-splash \
/usr/share/images/desktop-base/Splash-EvolvingTux.png
update-alternatives --remove gnome-splash \
/usr/share/images/desktop-base/Splash-Debian_red.png
scrub_alternatives ()
#tidy up any leftovers
local alt
for alt in $( update-alternatives --list $1 ); do
case $alt in;
/usr/share/images/desktop-base/*)
update-alternatives --remove $1 $alt
if [ -f "$alt" ]; then
rm $alt
fi
;;
"desktop-grub")
#remove all alternatives for obsolete desktop-grub.
update-alternatives --remove-all
;;
*)
;;
esac
done
}

dpkg-divert --package desktop-base --rename \
--divert /usr/share/pixmaps/splash/gnome-splash.png.orig \
--remove /usr/share/pixmaps/splash/gnome-splash.png
fi
fi

same_conffile() {
CONFFILE="$1"
if [ -e "$CONFFILE" ]; then
md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
old_md5sum="`dpkg-query -W -f='${Conffiles}' desktop-base | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
[ "$md5sum" = "$old_md5sum" ]
return
fi
return 1
}
if [ "${1}" = "upgrade" ]; then
#tidy up any leftovers
for alternatives in $( desktop-grub desktop-background desktop-background.xml desktop-splash ); do
scrub_alternatives $alternatives
done
fi

case "$1" in
install|upgrade)


+ 5
- 23
debian/prerm View File

@@ -6,46 +6,28 @@ set -e
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
# remove background alternatives
for background in \
lines-wallpaper_1280x1024.svg \
lines-wallpaper_1600x1200.svg \
lines-wallpaper_1920x1080.svg \
lines-wallpaper_1920x1200.svg \
lines-wallpaper_2560x1080.svg \
joy-wallpaper_1600x1200.svg \
joy-wallpaper_1600x1200.svg \
joy-wallpaper_1280x1024.svg \
joy-wallpaper_1920x1080.svg \
joy-wallpaper_1920x1200.svg \
joy-inksplat-wallpaper_1920x1080.svg \
spacefun-wallpaper.svg \
spacefun-wallpaper-widescreen.svg \
moreblue-orbit-wallpaper.svg \
moreblue-orbit-wallpaper-widescreen.svg \
your-way_purpy-narrow-large.svg \
your-way_purpy-wide-large.svg \
; do
update-alternatives --remove desktop-background /usr/share/images/desktop-base/$background
done
# remove desktop-background.xml alternatives
for desktopbackground in \
lines.xml \
joy.xml \
purpy.xml \
; do
update-alternatives --remove desktop-background.xml /usr/share/images/desktop-base/$desktopbackground
done

# remove splash alternatives
for splash in \
spacefun-splash.svg \
moreblue-orbit-splash.png \
your-way_purpy-wide-large.svg \
your-way_purpy-narrow-large.svg \
; do
update-alternatives --remove desktop-splash /usr/share/images/desktop-base/$splash
done

# remove grub alternatives
for background in \
lines-grub.png \
lines-grub-1920x1080.png \
joy-grub.png \
spacefun-grub.png \
spacefun-grub-widescreen.png \
; do
update-alternatives --remove desktop-grub /usr/share/images/desktop-base/$background


+ 1
- 1
gnome-backgrounds.xml View File

@@ -4,7 +4,7 @@
<!-- don't include words such as "wallpaper" (avoids translations) -->
<wallpaper>
<name>Your Way Blue</name>
<filename>/usr/share/images/desktop-base/your-way-blue.svg</filename>
<filename>/usr/share/images/desktop-base/purpy.xml</filename>
<options>zoom</options>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>


BIN
grub/joy-grub.png View File

Before After
Width: 640  |  Height: 480  |  Size: 58 KiB

BIN
grub/lines-grub-1920x1080.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 320 KiB

BIN
grub/lines-grub.png View File

Before After
Width: 640  |  Height: 480  |  Size: 72 KiB

BIN
grub/spacefun-grub-widescreen.png View File

Before After
Width: 1440  |  Height: 900  |  Size: 104 KiB

BIN
grub/spacefun-grub.png View File

Before After
Width: 640  |  Height: 480  |  Size: 30 KiB

Loading…
Cancel
Save