Skip to content

Commit 8de3836

Browse files
committed
Pass standard Qt args through to QApplication
1 parent 9bbb96c commit 8de3836

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/classes/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class OpenShotApp(QApplication):
7979
def __init__(self, *args, mode=None):
8080
QApplication.__init__(self, *args)
8181
self.mode = mode or "normal"
82-
self.args = list(*args)
82+
self.args = super().arguments()
8383
self.errors = []
8484

8585
try:

src/launch.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def main():
121121
parser.add_argument(
122122
'remain', nargs=argparse.REMAINDER, help=argparse.SUPPRESS)
123123

124-
args = parser.parse_args()
124+
args, extra_args = parser.parse_known_args()
125125

126126
# Display version and exit (if requested)
127127
if args.version:
@@ -174,6 +174,7 @@ def main():
174174
from classes.app import OpenShotApp
175175

176176
argv = [sys.argv[0]]
177+
argv.extend(extra_args)
177178
argv.extend(args.remain)
178179
try:
179180
app = OpenShotApp(argv)

0 commit comments

Comments
 (0)