Hi! ... I saw your post on HN and I thought your script was nice, but a couple things could be improved, so here's my patch :-)
The values for DOWNLOAD_PATH, RESOLUTION_X and RESOLUTION_Y are set to sane defaults (to be overwritten later)
the new find_resolution() function finds the desktop resolution using the xrandr command line tool and parsing the output
the set_download_folder() function uses glib to inspect which is the "downloads" folder for the user and create a new folder to store the backgrounds there.
Hi! ... I saw your post on HN and I thought your script was nice, but a couple things could be improved, so here's my patch :-)
Best regards,
Denis