Browse Source

Allow --no-sandbox argument

sisyphus
JezerM 3 years ago
parent
commit
6344a40c65
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 1
      web-greeter/__main__.py
  2. 3
      web-greeter/browser/browser.py

1
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("--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("--list", action="store_true", help="List available themes")
parser.add_argument("--theme", help="Set the theme to use", metavar="[name]") 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 args: argparse.Namespace

3
web-greeter/browser/browser.py

@ -29,6 +29,7 @@
# Standard lib # Standard lib
import re import re
import sys
from browser.window import MainWindow from browser.window import MainWindow
import os import os
from typing import ( from typing import (
@ -105,7 +106,7 @@ class Application:
QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling) QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling) QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
self.app = QApplication([]) self.app = QApplication(sys.argv)
self.window = MainWindow() self.window = MainWindow()
self.desktop = self.app.desktop() self.desktop = self.app.desktop()

Loading…
Cancel
Save