nixpkgs/pkgs/applications/networking/browsers/qutebrowser/fix-restart.patch
2020-01-10 16:05:17 +07:00

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]