diff options
author | Bastien Nocera | 2010-12-01 16:09:29 +0100 |
---|---|---|
committer | Nikias Bassen | 2010-12-01 16:09:29 +0100 |
commit | 59d520af8bbb6ff7702575036be387a9875b440d (patch) | |
tree | 7aa5a1b59fa2fb099b0b21ef705d01ae2090ce3f /src/gui.c | |
parent | 652e1793bc8a499d07299356a5f3f28a125c71b9 (diff) | |
download | sbmanager-59d520af8bbb6ff7702575036be387a9875b440d.tar.gz sbmanager-59d520af8bbb6ff7702575036be387a9875b440d.tar.bz2 |
Stop putting files in /tmp
Whether the wallpaper or the icons themselves, save them
in $XDG_CACHE_DIR, and simplify saving.
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 */ |