Determining path to current wallpaper with pygtk (maybe X11?)


I would like to determine a user's wallpaper path with PyGTK.

If possible, I would like to <strong>not</strong> rely on a Desktop Environment's function to do this - this is because some users(like myself) do not use a DE. Because of this, I am wondering if you can use X11 or something else to determine the current wallpaper being used.


You MUST rely on a desktop environment, otherwise it is not possible, since X11 isn't supposed to handle such things as wallpapers. When you set a background image, an external program loads the image and sets it as the background pixmap of the root window. Therefore, unless the specific loading mechanism stores the image path somewhere, X11 itself will never know where the image file is located on the disk.


  • How to help move the image does not exceed the limit on screens
  • Android set lock screen wallpaper programmatically [duplicate]
  • Dual RC522 on Orange PI
  • WP7 - change home screen background programmatically
  • Alternatives to Coldfusion Report Builder
  • Set video as wallpaper on Android
  • Open file with Windows' native program within C++ code
  • Using JNA to Get NSWindow from JComponent on mac
  • Use neo4j server instead of embedded mode
  • Automapper missing type map configuration or unsupported mapping
  • Are there any libraries for Python to simulate keyboard action?
  • What is this strange character in chrome's resource css viewer?
  • How to repeat sections of a SQL query across UNIONs? (DRY in SQL)
  • why calling cd shell command through system() or execvp() from a child process won't work?
  • How to skip require in ruby?
  • extjs4 catching the scroll event on panel
  • Sensibility of combined Maven/Ant+Ivy build management for dual platform Desktop/Android deployment?
  • there is no graph with tensorboard
  • Pass Dictionary to Javascript array
  • Saving image to sd with current date and time in name doesn't work
  • MS Access - How to change the linked table path by amend the table
  • Word Open XML Mail Merge
  • Yii2: Config params vs. const/define
  • Django rest serializer Breaks when data exists
  • How to rebase a series of branches?
  • Azure Cloud Service Web Role web pages do not load
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • Window Size for Mac application
  • Cassandra Data Model
  • what is the difference between the asp.net mvc application and asp.net web application
  • WOWZA + RTMP + HTML5 Playback?
  • 0x202A in filename: Why?
  • PHP: When would you need the self:: keyword?
  • Python: how to group similar lists together in a list of lists?
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • Acquiring multiple attributes from .xml file in c#
  • Understanding cpu registers
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • reshape alternating columns in less time and using less memory
  • How can I use threading to 'tick' a timer to be accessed by other threads?