Skip to content

Commit 8a7f053

Browse files
committed
pantheon.switchboard-plug-about: fix wallpaper path
1 parent d49d9a2 commit 8a7f053

3 files changed

Lines changed: 19 additions & 39 deletions

File tree

pkgs/desktops/pantheon/apps/switchboard-plugs/about/default.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
, switchboard
1616
, fwupd
1717
, appstream
18+
, nixos-artwork
1819
}:
1920

2021
stdenv.mkDerivation rec {
@@ -53,9 +54,11 @@ stdenv.mkDerivation rec {
5354
];
5455

5556
patches = [
56-
# The NixOS logo is not centered in the circular background and path
57-
# to the background is hardcoded, we will drop the background.
58-
./remove-logo-background.patch
57+
# Use NixOS's default wallpaper
58+
(substituteAll {
59+
src = ./fix-background-path.patch;
60+
default_wallpaper = "${nixos-artwork.wallpapers.simple-dark-gray.gnomeFilePath}";
61+
})
5962
];
6063

6164
meta = with lib; {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/Views/OperatingSystemView.vala b/src/Views/OperatingSystemView.vala
2+
index fdb92e7e..4161538e 100644
3+
--- a/src/Views/OperatingSystemView.vala
4+
+++ b/src/Views/OperatingSystemView.vala
5+
@@ -47,7 +47,7 @@ public class About.OperatingSystemView : Gtk.Grid {
6+
};
7+
logo.set_image_load_func ((size) => {
8+
try {
9+
- return new Gdk.Pixbuf.from_file_at_scale ("/usr/share/backgrounds/elementaryos-default", -1, size, true);
10+
+ return new Gdk.Pixbuf.from_file_at_scale ("@default_wallpaper@", -1, size, true);
11+
} catch (Error e) {
12+
critical (e.message);
13+
}

pkgs/desktops/pantheon/apps/switchboard-plugs/about/remove-logo-background.patch

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)