Well, the "dbus" trick didn't make it either.
I tried with the following script:
-------------------------------------------
import dbus, traceback
bus = dbus.SystemBus()
mgr = bus.get_object('org.freedesktop.ConsoleKit',
'/org/freedesktop/ConsoleKit/Manager')
for seat_name in mgr.GetSeats():
seat = bus.get_object('org.freedesktop.ConsoleKit',
seat_name)
for session_name in seat.GetSessions():
session = bus.get_object('org.freedesktop.ConsoleKit',
session_name)
if session.is_local:
print "### Session '%s':" % (session.GetId(),)
try:
session.Activate()
except:
traceback.print_exc()
-------------------------------------------
and all tells me is (ran with sudo):
### Session '/org/freedesktop/ConsoleKit/Session2':
Traceback (most recent call last):
File "./x.py", line 15, in <module>
session.Activate()
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in
call_blocking
message, timeout)
DBusException: org.freedesktop.DBus.GLib.UnmappedError.CkSeatError.Code0:
Activation is not supported for this kind of seat
What is the "kind" of seat am I sitting on ?!???
--
cannot mount usb volumes: "Not authorized", after upgrade to Karmic
https://bugs.launchpad.net/bugs/478274
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs