working on a script currently to get this up and running correctly,
however a bit stuck. If someone could look into this a bit more for me
I'd be very appericate. I would like to see this as a plugin or feature
that maybe enable on totem, or any media type program.  The script is to
check and see if the totem is set to paused, then close totem. But what
I really need is for it to just close totem after the movie / movies are
finished playing so that the computer can go into sleep mode after the
movie finishes. I thought this existed before.


#! /usr/bin/python
import dbus, dbus.service
import gobject, gtk
import os
import sys
from dbus.mainloop.glib import DBusGMainLoop
IFACE_NAME = 'org.mpris.totem'
IFACE_PATH = '/org/freedesktop/MediaPlayer'
def Pause(self):
        self.totem.action_pause()
if Pause :
        os.system("totem --quit")

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to totem in Ubuntu.
https://bugs.launchpad.net/bugs/694416

Title:
  totem wont close after a movie finishes playing

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to