summaryrefslogtreecommitdiff
path: root/qutebrowser/app.py
AgeCommit message (Collapse)Author
2021-11-28Hide/Ignore some messagesFlorian Bruhin
2021-08-26More random API changesFlorian Bruhin
2021-08-26Automatically rewrite enumsFlorian Bruhin
See #5904
2021-08-26Blanket PyQt5 -> PyQt6Florian Bruhin
2021-06-30Pave the way for pathlib migrationlufte
2021-06-26Update usages of sql module to use the new class.lufte
2021-04-15Remove old q_appFlorian Bruhin
Follow-up to c1758230200814e84055f3e2954cb69f0fddf5d8, see #6393
2021-03-23Fix lint/testsFlorian Bruhin
2021-03-19Only connect IPC after init has finishedFlorian Bruhin
Otherwise, if there's a fatal error message shown during init, we try to open something via IPC before we're fully initialized. This can e.g. lead to a KeyError for qtnetwork-download-manager: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/qutebrowser/app.py", line 120, in <lambda> process_pos_args(args, cwd=cwd, via_ipc=True, File "/usr/lib/python3/dist-packages/qutebrowser/app.py", line 230, in process_pos_args win_id = mainwindow.get_window(via_ipc, force_window=True) File "/usr/lib/python3/dist-packages/qutebrowser/mainwindow/mainwindow.py", line 89, in get_window window = MainWindow(private=None) File "/usr/lib/python3/dist-packages/qutebrowser/mainwindow/mainwindow.py", line 220, in __init__ self._init_downloadmanager() File "/usr/lib/python3/dist-packages/qutebrowser/mainwindow/mainwindow.py", line 350, in _init_downloadmanager qtnetwork_download_manager = objreg.get('qtnetwork-download-manager') File "/usr/lib/python3/dist-packages/qutebrowser/utils/objreg.py", line 249, in get return reg[name] File "/usr/lib/python3.8/collections/__init__.py", line 1010, in __getitem__ raise KeyError(key) KeyError: 'qtnetwork-download-manager'
2021-03-09Added test_resources.pyLembrun
2021-03-07Added utils/resources.py and changed calls to util.read_file*Lembrun
2021-02-24Revert "old qt: Use ApplicationAttribute to switch Ctrl/Meta on Mac"Florian Bruhin
This reverts commit 1132324db9d665ba0f0143fb1d071995a3fc7715. Causes various issues with Qt/QtWebEngine shortcuts. Fixes #6174 Closes #6149
2021-02-16Check for QtWebEngine versions for session workaroundFlorian Bruhin
This means sessions need to be initialized after websettings, because initializing websettings also initializes QtWebEngine and thus qutescheme. This needs to happen before sessions.init() calls version.webengine_versions(). I don't think this should be a problem, as they are independent to each other. Fixes #5738 See #5359 Also switches sessions.init() to pathlib, see #176.
2021-02-03Handle a single empty startup argumentFlorian Bruhin
When using open_url_in_instance.sh, it runs qutebrowser passing a single empty argument to it. This doesn't properly open a new window, but opens a window without any tabs instead. Interacting with that will then lead to a RegistryUnavailableError. We now special-case that behavior, though there might be a more involved proper fix for "" handling needed at a later point. Fixes #6122
2021-01-27Only show changelog after feature upgradesFlorian Bruhin
2021-01-27Show changelog after upgradesFlorian Bruhin
2021-01-27Update Qt 5.15 session warning againFlorian Bruhin
Also don't show it for new users - this doesn't really help much if someone just started using qutebrowser. See #5359
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-14Merge branch 'master' into history-cleanupFlorian Bruhin
# Conflicts: # qutebrowser/app.py
2021-01-11Add objects.qapp to avoid needing to None-checkFlorian Bruhin
We know that QApplication.instance() will always be non-None for practical purposes, but the stubs now (correctly) declare it as Optional. See https://github.com/stlehmann/PyQt5-stubs/pull/126
2021-01-08Trivial PyQt 6 changesFlorian Bruhin
See #5395
2021-01-05history: Add timer for sql/history initFlorian Bruhin
2020-12-28fixed typing mistakefreddii
2020-12-04Merge remote-tracking branch 'origin/pr/5813'Florian Bruhin
2020-12-03Reverting this order switch as apparently it's not neededlufte
2020-12-03Merge remote-tracking branch 'origin/pr/5923'Florian Bruhin
2020-12-03Support --desktop-file-name arg to set Wayland app_idMark Stosberg
Fixes #5245
2020-11-10Merge branch 'master' into issue5810lufte
2020-11-04old qt: Use ApplicationAttribute to switch Ctrl/Meta on MacFlorian Bruhin
2020-11-04old qt: Adjust various comments/outputsFlorian Bruhin
2020-11-04old qt: Remove old qt warningFlorian Bruhin
2020-10-31Move profile initialization to webenginesettings.pylufte
2020-10-31mypy: use from-import for typing in remaining filesTim Brown
I believe this should close #5396
2020-10-19app.py: remove one indentation level in event()fridokus
2020-09-29Add debug logging for PIDsFlorian Bruhin
2020-08-05Clean up running downloads when shutting downFlorian Bruhin
The previous change (asking when a conflicting download is running) caused RuntimeErrors because some stuff was already cleaned up when trying to remove them from the download model. Probably something (e.g. storing self._manager in DownloadItems) shifted around the order things are cleaned up. Instead, clean up downloads explicitly by cancelling them all when shutting down.
2020-07-28Always pass target to mainwindow.get_window()Florian Bruhin
All callers except one passed force_target anyways.
2020-07-28Revert fix for not raising IPC windowsFlorian Bruhin
This partially reverts efaa721ef72953786db05b305815e801d2dcd52a so that it doesn't actually change any behavior, as the change breaks tests. Reopens #1328
2020-07-28Replace force_window/force_tab by force_target in get_window()Florian Bruhin
This also should properly fix #1328 since we now always force 'tab-silent' for commands, instead of only forcing it when the setting is set to 'window'
2020-07-28Make get_window arguments keyword onlyFlorian Bruhin
2020-07-28Fix broken type annotationsFlorian Bruhin
2020-07-28Merge remote-tracking branch 'origin/pr/4645' into private-windowFlorian Bruhin
2020-07-28Move :undo --window code to a separate fileFlorian Bruhin
2020-07-28Merge remote-tracking branch 'origin/pr/4807' into window-undoFlorian Bruhin
2020-07-16Move session shutdown to sessions.pyFlorian Bruhin
2020-07-13Re-use the tab undo stack size setting.Jimmy
2020-07-13Give the window undo stack a max size.Jimmy
It is an arbitrary limit for now. We can make in configurable once #4814 adds such a config option. The only time I can imagine someone would want more than 100 entries is if they have tabs_are_windows and more than 100 windows open and do :window-only by mistake. Tested by doing `:repeat 110 open -w about:blank`, `:window-only`, `:repeat 110 undo -w` and looking at the window IDs in the buffer completion.
2020-07-13Add get/setter for undo stack.Jimmy
2020-07-13Add --window argument to :undo.Jimmy
I don't like using `QApplication.instance()` and then calling methods that aren't defined for a `QApplication` on it. We need to sort our module heirarchy out though because there would be an import loop from importing app here.