summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui.c b/src/gui.c
index f86d677..fcaa34d 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1808,9 +1808,16 @@ static gboolean gui_pages_init_cb(gpointer user_data)
/* Load wallpaper if available */
if (osversion >= 0x03020000) {
- if (device_sbs_save_wallpaper(sbc, "/tmp/wallpaper.png", &error)) {
- gui_set_wallpaper("/tmp/wallpaper.png");
- }
+ char *path;
+ path = device_sbs_save_wallpaper(sbc, uuid, &error);
+ if (path == NULL) {
+ g_printerr("%s", error->message);
+ g_error_free(error);
+ error = NULL;
+ } else {
+ gui_set_wallpaper(path);
+ }
+ g_free (path);
}
#endif
/* Load icon data */