randomdrake/nasa-apod-desktop — pull request #2 by dfuenzalida (2012-07-29 21:23:31+00:00)
Title: Desktop resolution and downloads folder patch

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.

Best regards,

Denis