dont fill ignore screen list if loginD is not available
This commit is contained in:
parent
7f1b00c741
commit
497f9eaa5c
@ -65,6 +65,7 @@ class driver():
|
||||
self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
|
||||
|
||||
def getSessionInformation(self):
|
||||
try:
|
||||
bus = dbus.SystemBus()
|
||||
if not self.ListSessions:
|
||||
obj = bus.get_object('org.freedesktop.login1', '/org/freedesktop/login1')
|
||||
@ -90,7 +91,9 @@ class driver():
|
||||
if self.env['generalInformation']['currUser'] != session[2]:
|
||||
self.env['generalInformation']['prevUser'] = self.env['generalInformation']['currUser']
|
||||
self.env['generalInformation']['currUser'] = session[2]
|
||||
|
||||
except Exception as e:
|
||||
self.env['runtime']['debug'].writeDebugOut('getSessionInformation: Maybe no LoginD:' + str(e),debug.debugLevel.ERROR)
|
||||
self.env['screenData']['autoIgnoreScreens'] = []
|
||||
def update(self, trigger='onUpdate'):
|
||||
newContentBytes = b''
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user