Changeset 5717 for lliurex-moving-core


Ignore:
Timestamp:
Aug 14, 2017, 2:40:28 PM (3 years ago)
Author:
hectorgh
Message:

adding missing stop step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-moving-core/trunk/fuentes/bin/llx-moving-gnome

    r4420 r5717  
    127127                proxy.connect_to_signal("QueryEndSession",self.on_query_end_session)
    128128                proxy.connect_to_signal("EndSession",self.on_end_session)
     129                proxy.connect_to_signal("Stop",self.on_stop)
    129130               
    130131               
     
    211212                syslog.syslog("terminating")
    212213                Gtk.main_quit()
    213         #def
     214               
     215                proxy = self.session_bus.get_object('org.gnome.SessionManager',self.client_id)
     216                proxy=dbus.Interface(proxy,"org.gnome.SessionManager.ClientPrivate")
     217                proxy.EndSessionResponse(True,"Exiting session...")
     218               
     219        #def
     220       
     221        def on_stop(self):
     222               
     223                syslog.syslog("done")
     224               
     225        #def on_stop
    214226
    215227        def load_dconf(self):
Note: See TracChangeset for help on using the changeset viewer.