Commit 8745ee59 authored by Nicolas Bruguier's avatar Nicolas Bruguier

debian/patches/add-greeter-background.patch:

  - create a symlink at $HOME/.background on background change
    to set greeter background.
parent 34379023
diff --git a/src/Wallpaper.vala b/src/Wallpaper.vala
index 782c7b7..3235d4f 100644
--- a/src/Wallpaper.vala
+++ b/src/Wallpaper.vala
@@ -210,6 +210,7 @@ class Wallpaper : EventBox {
var localfile = copy_for_library (file);
if (localfile != null) {
uri = localfile.get_uri ();
+ path = localfile.get_path ();
}
}
@@ -219,6 +220,9 @@ class Wallpaper : EventBox {
}
settings.set_string ("picture-uri", uri);
+ string home_path = GLib.Environment.get_home_dir() + "/.background";
+ GLib.FileUtils.unlink (home_path);
+ GLib.FileUtils.symlink (path, home_path);
accountsservice.set_background_file (path);
} catch (Error e) {
warning (e.message);
add-libbamf3-vapi.patch
add-greeter-background.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment