#!/usr/bin/python

import gnome
import gnome.ui
import sys
import os
import gtk

class test:
    def __init__(self):
        print os.environ['SESSION_MANAGER']
	print os.getenv('SESSION_MANAGER')
        gnome.program_init("test", "1.0")
        self.session = gnome.ui.gnome_master_client()
        if self.session:
            print "Found session"
        else:
            print "Couldn't find session"

    def run(self):
        gtk.mainloop()

def main():
    foo = test()
    foo.run()

if __name__ == "__main__":
    main()

