I am developing a PyGtk application that I would like to display the image for a USB stick from the user's theme. However, I cannot seem to pin down the name of the icon, and Google is no help. Consider the following code:
import pygtk pygtk.require('2.0') require gtk icon_theme = gtk.icon_theme_get_default() icon_theme.has_icon('firefox') #True icon_theme.has_icon('google-chrome') #True icon_theme.has_icon('usb') #False. I have also tried "drive", and "usb-drive".
- Can you suggest a query?
- Is the USB stick icon discoverable this way? Should I look elsewhere?