summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/qutebrowser/fix-restart.patch
blob: 985f916b32c4572645aab6d9b89d714e9b1b9d25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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]