From 6344a40c65d207d3bd55bda19f437590b4a8868b Mon Sep 17 00:00:00 2001 From: JezerM Date: Sun, 12 Dec 2021 19:31:05 -0600 Subject: [PATCH] Allow --no-sandbox argument --- web-greeter/__main__.py | 1 + web-greeter/browser/browser.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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()