mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
216dea5b9d
Closes #77360
21 lines
718 B
Diff
21 lines
718 B
Diff
diff --git a/qutebrowser/app.py b/qutebrowser/app.py
|
|
index a47b5d2f4..f23ee23ef 100644
|
|
--- a/qutebrowser/app.py
|
|
+++ b/qutebrowser/app.py
|
|
@@ -573,13 +573,8 @@ class Quitter(QObject):
|
|
Return:
|
|
The commandline as a list of strings.
|
|
"""
|
|
- if os.path.basename(sys.argv[0]) == 'qutebrowser':
|
|
- # Launched via launcher script
|
|
- args = [sys.argv[0]]
|
|
- elif hasattr(sys, 'frozen'):
|
|
- args = [sys.executable]
|
|
- else:
|
|
- args = [sys.executable, '-m', 'qutebrowser']
|
|
+ args = ['@qutebrowser@']
|
|
+ cwd = None
|
|
|
|
# Add all open pages so they get reopened.
|
|
page_args = [] # type: typing.MutableSequence[str]
|