diff --git a/web-greeter/__main__.py b/web-greeter/__main__.py index a46e6be..c064e39 100644 --- a/web-greeter/__main__.py +++ b/web-greeter/__main__.py @@ -74,6 +74,7 @@ def parse(argv): parser.add_argument("--normal", action="store_false", help="Run in non-debug mode", dest="debug") parser.add_argument("--list", action="store_true", help="List available themes") parser.add_argument("--theme", help="Set the theme to use", metavar="[name]") + parser.add_argument("--no-sandbox", action="store_true", help=argparse.SUPPRESS) args: argparse.Namespace diff --git a/web-greeter/browser/browser.py b/web-greeter/browser/browser.py index 24d6269..d0f15a9 100644 --- a/web-greeter/browser/browser.py +++ b/web-greeter/browser/browser.py @@ -29,6 +29,7 @@ # Standard lib import re +import sys from browser.window import MainWindow import os from typing import ( @@ -105,7 +106,7 @@ class Application: QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling) QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling) - self.app = QApplication([]) + self.app = QApplication(sys.argv) self.window = MainWindow() self.desktop = self.app.desktop()