python,music,ubuntu-14.04,rhythmbox
Try this: >>> import os >>> os.system("rhythmbox <filename>") ...
This works with Rhythmbox 3. I changed it to write the current song to a file ( ~/.now_playing ) but you can update it for your needs: #!/usr/bin/python import dbus import dbus.mainloop.glib import glib # This gets called whenever Rhythmbox sends the playingUriChanged signal def playing_song_changed (Player,two,three): global iface global...
Try to add direct address. import os from xml.dom.minidom import parse BASE_DIR = os.path.dirname(os.path.abspath(__file__)) xmlfile = os.path.join(BASE_DIR,'sites.xml') doc = parse(xmlfile) ...