Browse Source

Bugfixes

sisyphus
JezerM 3 years ago
parent
commit
03bf603839
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 3
      web-greeter/bridge/Greeter.py
  2. 6
      web-greeter/browser/browser.py

3
web-greeter/bridge/Greeter.py

@ -400,7 +400,8 @@ class Greeter(BridgeObject):
if not session.strip():
return
started = LightDMGreeter.start_session_sync(session)
if started or self.is_authenticated():
if started or self.is_authenticated:
logger.debug("Session \"" + session + "\" started")
reset_screensaver()
return started

6
web-greeter/browser/browser.py

@ -247,14 +247,14 @@ class Browser(Application):
self.show()
def load(self):
self.load_script(':/_greeter/js/bundle.js', 'Web Greeter Bundle')
self.load_theme()
self.greeter = Greeter()
self.greeter_config = Config()
self.theme_utils = ThemeUtils(self.greeter)
self.bridge_objects = (self.greeter, self.greeter_config, self.theme_utils)
self.initialize_bridge_objects()
self.load_script(':/_greeter/js/bundle.js', 'Web Greeter Bundle')
self.load_theme()
def _initialize_devtools(self):
self.dev_view = QWebEngineView(parent=self.window)
@ -327,6 +327,8 @@ class Browser(Application):
print("Path does not exists")
path_to_theme = os.path.join(dir, def_theme, "index.html")
web_greeter_config["config"]["greeter"]["theme"] = path_to_theme
url = QUrl("web-greeter://app/{0}".format(path_to_theme))
self.page.load(url)

Loading…
Cancel
Save