Last active
November 19, 2016 15:39
-
-
Save nachanon/7f1aff255e24eb01b4fd to your computer and use it in GitHub Desktop.
Patch for MATE Screen Saver git 0ebac28 (~1.10.2) for displaying user-configured desktop background on lock screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Nutchanon Wetchasit <nachanon@users.noreply.github.com> | |
Subject: Load user-configured background on password prompt display | |
Bug: https://github.com/mate-desktop/mate-screensaver/issues/55 | |
--- a/src/gs-manager.c | |
+++ b/src/gs-manager.c | |
@@ -1053,8 +1053,6 @@ | |
"changed", | |
G_CALLBACK (on_bg_changed), | |
manager); | |
- | |
- mate_bg_load_from_system_preferences (manager->priv->bg); | |
} | |
static void | |
@@ -1270,6 +1268,10 @@ | |
gs_window_set_background_pixmap (window, NULL); | |
#endif | |
} | |
+ else | |
+ { | |
+ mate_bg_load_from_preferences (manager->priv->bg); | |
+ } | |
screen = gs_window_get_screen (window); | |
width = gdk_screen_get_width (screen); |
thanks krisek, i have never applied a patch before, i was way off... thanks again.
@ krisek
Is your improvement a replacement or should this work on top of origin patch?
I'm a bit confused about that you add bits at a place where it was removed in origin patch.
@krisek
I tried both versions but i think we want to use your improved version as rhel/centos are using a timing desktop bg (dynamic desktop wallpaper). Do you want to make a pull request?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@RedDot15: I don't know if you managed to figure it out... download the mate-screensaver_______.orig.tar.xz and mate-screensaver__________.debian.tar.gz files (replace the underscores with your version/distro dependent things). Create a directory where you will work. Untar into this directory the .orig.tar.gz file. You will have a mate-screensaver____ directory in your work directory, change into it. Untar here the debian.tar.gz. Then you can apply the patch. Then you run
this tells you what dev packages you need to install -- be careful here: xmlto brings latex with itself, you can skip it (and save one GB disk space). Then you run
(it will include this goodie in the debian.tar.gz), then
and there you go, the updated mate-screensaver packages are generated.
I hope I haven't forgot anything.