From me at the-compiler.org Fri Mar 12 15:29:44 2021 From: me at the-compiler.org (Florian Bruhin) Date: Fri, 12 Mar 2021 15:29:44 +0100 Subject: [qutebrowser] qutebrowser v2.1.0 released! / "Network service crashed, restarting service" Message-ID: <20210312142944.o5pju3rc3qkq5b67@aragog.localdomain> Hey, I'm happy to announce that I've released qutebrowser v2.1.0 today! The main change in this release are various changes for compatibility with QtWebEngine 5.15.3 (most notably its dark mode changes) and PyQt 5.15.3 and .4. There's also a workaround for a bug in QtWebEngine 5.15.3 which causes qutebrowser to be unusable with certain locales (Country-specific LANG values other than en_US/en_GB). If you get "Network service crashed, restarting service" in your terminal, you're affected by this bug. You can set the qt.workarounds.locale settings to make qutebrowser work around it. The workaround is disabled by default because a proper fix is expected to land in affected distributions soon (Archlinux and Gentoo as for now). Finally, there are some other bugfixes as well, as well as a couple new features. Here's the full changelog: Removed ~~~~~~~ - The following command aliases were deprecated in v2.0.0 and are now removed: * `run-macro` -> `macro-run` * `record-macro` -> `macro-record` * `buffer` -> `tab-select` * `open-editor` -> `edit-text` * `toggle-selection` -> `selection-toggle` * `drop-selection` -> `selection-drop` * `reverse-selection` -> `selection-reverse` * `follow-selected` -> `selection-follow` * `follow-hint` -> `hint-follow` * `enter-mode` -> `mode-enter` * `leave-mode` -> `mode-leave` Added ~~~~~ - New `:screenshot` command which can be used to screenshot the visible part of the page. - New optional dependency on the `importlib_metadata` project on Python 3.7 and below. This is only relevant when PyQtWebEngine is installed via pip - thus, this dependency usually isn't relevant for packagers. - New `qute-keepassxc` userscript integrating with the KeePassXC browser API. Changed ~~~~~~~ - Initial support for QtWebEngine 5.15.3 and PyQt 5.15.3/.4 - The `colors.webpage.prefers_color_scheme_dark` setting got renamed to `colors.webpage.preferred_color_scheme` and now takes the values `auto`, `light` and `dark` (instead of being `True` for dark and `False` for auto). Note that the `light` value is only supported with Qt 5.15.2+, falling back to the same behavior as `auto` on older versions. - On Linux, qutebrowser now tries harder to find details about the installed QtWebEngine version by inspecting the QtWebEngine binary. This should reduce issues with dark mode (and some workarounds) not working when using differing versions of QtWebEngine/PyQtWebEngine/Qt. This change also prepares qutebrowser for QtWebEngine 5.15.3, which will get released without an updated Qt. - When PyQtWebEngine >= 5.15.3 is installed via `pip` (as is e.g. the case with `mkvenv.py`), qutebrowser now queries the associated metadata to find out the QtWebEngine version. - When doing `:hint links yank --rapid`, the messages shown now replace each other, thus being less noisy. - Newlines in JavaScript messages (`confirm`, `prompt` and `alert`) are now preserved. - Messages in prompts are now word-wrapped rather than displaying them in one long line. - If a command stats with space (e.g. `: open ...`, it's now not saved to command history anymore (similar to how some shells work). - When a tab is pinned, running `:open` will now open a new tab instead of displaying an error. - The `fileselect.*.command` settings now support file selectors writing the selected paths to stdout, which is used if no `{}` placeholder is contained in the configured command. - The `--debug-flag` argument now understands a new `log-sensitive-keys` value which logs all keypresses (including those in insert/passthrough/prompt/... mode) for debugging. - The `readability` and `readability-js` userscripts now add a `qute-readability` CSS class to the page, so that it can be styled easily via a user stylesheet. Fixed ~~~~~ - With QtWebEngine 5.15.3 and some locales, Chromium can't start its subprocesses. As a result, qutebrowser only shows a blank page and logs "Network service crashed, restarting service.". This release adds a `qt.workarounds.locale` setting working around the issue. It is disabled by default since distributions shipping 5.15.3 will probably have a proper patch for it backported very soon. - The `colors.webpage.preferred_color_scheme` and `colors.webpage.darkmode.*` settings now work correctly with QtWebEngine 5.15.3 (and Gentoo, which at the time of writing packages 5.15.3 disguised as 5.15.2). - When dark mode settings were set, existing `blink-features` arguments in `qt.args` (or `--qt-flag`) were overridden. They are now combined properly. - On QtWebEngine 5.15.2, auto detection for the `prefers-color-scheme` media query is broken and always returns `no-preference`, which was removed from the CSS WG Specification. This release contains a workaround to always return `light` instead (as per the spec). - When an external file selector deletes the temporary file (like `nnn` does when quitting the terminal), qutebrowser would crash. It now displays an error instead. The same applies if the temporary file is unreadable for any other reason. - On macOS, a change in v2.0.x caused certain shortcuts to not work with Cmd anymore, using Ctrl instead. They now work correctly using Cmd (like usual on macOS) again. - On macOS, using `F` (`hint all tab`) sometimes would open a context menu instead of following a link. This is now fixed. - The quirk added for a missing `String.replaceAll` did not handle special regexp characters correctly, thus breaking some sites. It now handles them properly. - The "try again" button on error pages now works correctly with JavaScript disabled. - If a GreaseMonkey script doesn't have a "@run-at" comment, qutebrowser accidentally treated that as "@run-at document-idle". However, other GreaseMonkey implementations default to "@run-at document-end" instead, which is what qutebrowser now does, too. - The `hist_importer.py` script didn't work correctly after qutebrowser v2.0.0 and resulted in a history database qutebrowser couldn't read properly. It now works properly again. - With certain QtWebEngine versions (5.15.0 based on Chromium 80 and 5.15.3 based on Chromium 87), Chromium's dark mode doesn't invert certain SVG images, even with `colors.wegpage.darkmode.policy.images` set to `smart`. Most notably, this causes formulae on Wikipedia to display black on (almost) black. If `content.site_specific_quirks` is enabled, qutebrowser now injects some CSS as a workaround, which inverts all math formula images on Wikipedia (and potentially other sites, if they use the same CSS class). - When a hint label text started with an apostrophe, it would show an escaped text until the hints first character has been pressed. It now shows up correctly. Thanks to everyone who was involved, and enjoy! Florian -- me at the-compiler.org | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Fri Mar 12 16:05:17 2021 From: me at the-compiler.org (Florian Bruhin) Date: Fri, 12 Mar 2021 16:05:17 +0100 Subject: [qutebrowser] qutebrowser v2.1.0 released! / "Network service crashed, restarting service" In-Reply-To: <20210312142944.o5pju3rc3qkq5b67@aragog.localdomain> References: <20210312142944.o5pju3rc3qkq5b67@aragog.localdomain> Message-ID: <20210312150517.zo3pu6mbeybcujfy@aragog.localdomain> Hey again, On Fri, Mar 12, 2021 at 03:29:47PM +0100, Florian Bruhin wrote: > I'm happy to announce that I've released qutebrowser v2.1.0 today! Two amendments: - My GPG key expired this week. I uploaded an updated key today to the usual keyservers, as well as to keybase, GitHub, and the link in the signature. I think that covers everything, so if you get an issue with outdated keys, make sure you refresh them. - The original Windows releases still had debugging enabled accidentally, which causes a console window to show up on start. Given that it's been discovered so shortly after the release, I decided to upload new files and delete the old ones. Thanks to u/holiflo on Reddit who discovered and reported this so quickly! Sorry for the trouble, let's hope everything is alright now. :) Florian -- me at the-compiler.org | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From brucyallegra at gmail.com Mon Mar 22 04:57:03 2021 From: brucyallegra at gmail.com (bruce allegra) Date: Mon, 22 Mar 2021 03:57:03 +0000 Subject: [qutebrowser] Problem with opening editor Message-ID: Error while spawning editor: Process failed to start: The system cannot find the file specified I have been getting this error whilst trying to open an editor on windows using the edit-text command -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Mon Mar 22 11:06:48 2021 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 22 Mar 2021 11:06:48 +0100 Subject: [qutebrowser] Problem with opening editor In-Reply-To: References: Message-ID: <20210322100648.iwsdxr4ymmfraimi@aragog.localdomain> Hey, On Mon, Mar 22, 2021 at 03:57:03AM +0000, bruce allegra wrote: > Error while spawning editor: Process failed to start: The system cannot > find the file specified > > I have been getting this error whilst trying to open an editor on windows > using the edit-text command That means whatever you specified as editor.command wasn't found. What did you set the setting to? Is that editor in there in $PATH, can you e.g. launch it from a cmd.exe (or powershell) window? Florian -- me at the-compiler.org | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: