惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
MongoDB | Blog
MongoDB | Blog
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
D
Docker
S
Secure Thoughts
B
Blog
M
MIT News - Artificial intelligence
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tenable Blog
Last Week in AI
Last Week in AI
A
About on SuperTechFans
T
Tor Project blog
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
L
Lohrmann on Cybersecurity
Security Latest
Security Latest
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
P
Privacy & Cybersecurity Law Blog
Spread Privacy
Spread Privacy
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
小众软件
小众软件
宝玉的分享
宝玉的分享
量子位
Forbes - Security
Forbes - Security
T
Threatpost
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
H
Help Net Security
Help Net Security
Help Net Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
T
Troy Hunt's Blog
SecWiki News
SecWiki News
I
InfoQ
C
Cyber Attacks, Cyber Crime and Cyber Security
Stack Overflow Blog
Stack Overflow Blog

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments on Linux arch 7.0.10-arch1-1 connection drops / Networking, Server, and Protection GDM does not open login screen after update / Newbie Corner Cinnamon (X11) fails to load after update (Page 2) / Applications & Desktop Environments fontconfig-2:2.18.x - broken fonts? (Page 2) / Applications & Desktop Environments Bluetooth headphones connect but don't auto-switch (alsa 1.2.16) / Multimedia and Games Audio breaks after every suspend/change of VT (Page 2) / Newbie Corner EFI stub: Warning: unable to unprotect memory range (Page 3) / Kernel & Hardware Keyboard problem with the french disposition / Newbie Corner Working with two network interfaces / Networking, Server, and Protection [SOLVED] Power spikes on laptop / Laptop Issues Problems with Qt? (Page 2) / Applications & Desktop Environments plasmashell 6.6.5 crashing on loop / Applications & Desktop Environments I'm worried / Newbie Corner Help! RTL8723BS "coalesce failed with error -22" after upgrade / Laptop Issues System notifications not working on any browser / Applications & Desktop Environments installing kernels with kernel-install / Community Contributions [SOLVED] Intel AX210 issue on linux=7.0.10 / Kernel & Hardware No longer booting after Windows 11 update / Installation *SOLVED* Two PC's but different boot times - Kernel 7.0? / Kernel & Hardware gnome-shell continuous clutter_input_focus_set_cursor_location msg / Pacman & Package Upgrade Issues google-chrome, vscode and spotify are ignore my fontconfig / Applications & Desktop Environments KDE6 Akonadi default database backend / Creating & Modifying Packages Support / Routing quirks for new Creative Sound Blaster AE-X (USB ID 0 / Kernel & Hardware Kernel Panic and system freezes with 4x16 DDR5 (Page 2) / Kernel & Hardware dm-crypt and SSDs / Newbie Corner Problems with Worms WMD / Newbie Corner Freeze after login whenever upgrading nvidia/kernel / Laptop Issues Blender crashes on startup when using Vulkan backend / Applications & Desktop Environments Top 5 MDM Solutions for Linux Devices in 2026 Elden Ring crash in sound initialisation / Multimedia and Games AUR connection issues (EOF/TLS errors) (Page 5) / AUR Issues, Discussion & PKGBUILD Requests GNOME freeze after login / Applications & Desktop Environments Bash is weird now / Newbie Corner Gif as KDE avatar / Applications & Desktop Environments Export in musescore / Applications & Desktop Environments Nvidia And Amd Drivers / Applications & Desktop Environments [SOLVED] How to get pavucontrol in dark mode? / Newbie Corner Startx does not work / Applications & Desktop Environments Coturn server installtaion / Applications & Desktop Environments Could not resolve Matrix-synapse dependency error / Applications & Desktop Environments Possible solution for mesa-amber build failure with glibc-2.43 / Multimedia and Games [SOLVED] Plymouth forces English (US) layout on boot / Newbie Corner [Solved]What should I use as license if the upstream repo has none? / AUR Issues, Discussion & PKGBUILD Requests The Official Hello Everyone Thread (Page 334) / Newbie Corner [SOLVED] EPSON ET-2710 printer only printing blank pages / Newbie Corner [SOLVED]Session crashes after login, booted back to sddm / Laptop Issues [SOLVED] Asus monitor suspend results in on/off cycling / Newbie Corner Ultrahuman Discount Code [SAVEULTRA] 10% Off For Existing Customers / Creating & Modifying Packages Ultrahuman Discount Code [SAVEULTRA] 10% Off – Verified Coupon for Exi / Arch Discussion New Ultrahuman Discount Code [SAVEULTRA] 2026 – Get 20% Extra OffToday / Programming & Scripting Ultrahuman Discount Code 2026 - "SAVEULTRA" - Get 20% Extra Off / Newbie Corner Sway keybinding stops working after sleep / Applications & Desktop Environments QEMU SPICE how to achieve bidirectional clipboard with Sway? / Applications & Desktop Environments Apollo Neuro Promo Code [APOLLOZEN] $99 Off Legit Or Just Marketing Apollo Neuro Discount Code $99 Off [APOLLOZEN] Secret Savings Trick HTTP session disconnect on WI-FI disconnect / Networking, Server, and Protection [SOLVED] Cannot chain-load into Windows with GRUB. / Newbie Corner [SOLVED] Font hinting appears to be disabled on Qt6 applications? / Applications & Desktop Environments Black screen after waking up from sleep/hybernate/suspend. / Newbie Corner Diskless booting failing, ipconfig no devices to configure / Kernel & Hardware Strange Font Issue Across System / Newbie Corner [SOLVED] Laptop doesn't wake from sleep on NVIDIA 595.71.05 drivers / Newbie Corner Touchpad randomly stops moving (clicks still work) on Hyprland / Laptop Issues Random hangs on Ryzen Mobile after 6.18.13 ? / Kernel & Hardware [SOLVED] Can't get IP address for USB Ethernet device (KORG Wavestate) / Networking, Server, and Protection Laptop display does not turn on after being off for around 50 min / Multimedia and Games Text Corruption in GPU Screen Recorder GUI / Applications & Desktop Environments Mouse not correctly recognized during boot (Page 2) / Kernel & Hardware PKGBUILD review / AUR Issues, Discussion & PKGBUILD Requests Touchpad not working / Newbie Corner
Weaver: qt6-webengine browser w/ minimal UI (Page 9) / Community Contributions
Trilby · 2026-06-20 · via Arch Linux Forums

#201 2022-01-16 15:34:00

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

I was able to build weaver using APKBUILD, but optional dependencies are generally uninstalled after package compilation, so those *-dev packages were not present when I tried this. So I installed optional dependencies for weaver "binutils-gold qt6-qtbase-dev qt6-qtwebengine-dev" , but compilation still failed

[^^]└───▶ g++ -I/usr/include/qt6/ -fPIC -lQt6WebEngineWidgets -lQt6Core -lQt6Widgets -o qt6webtest engine.c
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `main':
engine.c:(.text+0x48): undefined reference to `QApplication::QApplication(int&, char**, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x62): undefined reference to `QWebEngineView::QWebEngineView(QWidget*)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x9c): undefined reference to `QUrl::QUrl(QString const&, QUrl::ParsingMode)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xab): undefined reference to `QWebEngineView::setUrl(QUrl const&)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xb7): undefined reference to `QUrl::~QUrl()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xcf): undefined reference to `QWidget::show()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xd4): undefined reference to `QApplication::exec()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xe3): undefined reference to `QApplication::~QApplication()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x11a): undefined reference to `QUrl::~QUrl()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x13c): undefined reference to `QApplication::~QApplication()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o:(.qtversion[qt_version_tag]+0x0): undefined reference to `qt_version_tag'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QString::QString(char const*)':
engine.c:(.text._ZN7QStringC2EPKc[_ZN7QStringC5EPKc]+0x45): undefined reference to `QString::fromUtf8(QByteArrayView)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QByteArrayView::QByteArrayView<char, true>(char const*, long long)':
engine.c:(.text._ZN14QByteArrayViewC2IcLb1EEEPKT_x[_ZN14QByteArrayViewC5IcLb1EEEPKT_x]+0x35): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text._ZN14QByteArrayViewC2IcLb1EEEPKT_x[_ZN14QByteArrayViewC5IcLb1EEEPKT_x]+0x61): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QtPrivate::QPodArrayOps<char16_t>::destroyAll()':
engine.c:(.text._ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv[_ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv]+0x32): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text._ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv[_ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv]+0x63): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QTypedArrayData<char16_t>::deallocate(QArrayData*)':
engine.c:(.text._ZN15QTypedArrayDataIDsE10deallocateEP10QArrayData[_ZN15QTypedArrayDataIDsE10deallocateEP10QArrayData]+0x1e): undefined reference to `QArrayData::deallocate(QArrayData*, long long, long long)'
collect2: error: ld returned 1 exit status

EDIT: I wasn't compiling weaver before, I did that only after sodface shared APKBUILD.

Last edited by Docbroke (2022-01-16 15:37:18)

#202 2022-01-16 16:07:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

That's a linker issue.  You need to figure out where those libs are or what they are called on your alpine system as there is no pkgconfig .pc files distributed with qt6 webengine sources.  I'm really not equipped to help with that.  You just need the three shared libraries referred to on the example compiler line I provided, but I have no idea how that'd work in alpine.  You might want to look at the APKBUILD for weaver to see what Carl did as the linker flags needed for this test program are a very small subset of what is used for weaver.  That's the whole point of the test program.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#203 2022-02-08 08:31:25

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

with newer qt6-webengine, youtube works with weaver in allpine now. I am noticing occasionally unresponsive weaver window which needs restart of weaver. I have also noticed similar thing with telegram-desktop (on both arch and alpine) which also uses qt6. There is bug report https://github.com/telegramdesktop/tdes … sues/17296 for telegram, have you noticed similar thing with weaver?

I don't know how to reproduce this with weaver, yet. It is easy to reproduce with telegram though (as in linked bug report)

Last edited by Docbroke (2022-02-08 08:32:07)

#204 2022-02-08 14:15:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Docbroke wrote:

I don't know how to reproduce this with weaver, yet.

If you can, let me know.  I don't use telegram.  From reading that bug report, I suspect there may be some interaction with the WM/compositor on whether or not symptoms would be detected.

Last edited by Trilby (2022-02-08 14:15:29)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#205 2026-01-05 14:47:03

midgeek
Member
Registered: 2024-12-30
Posts: 8

Re: Weaver: qt6-webengine browser w/ minimal UI

Hello, I have a problem in setting some attributes in the config file, mainly the ForceDarkMode, I have it =true in the .config/weaver/config.conf, but it is non effective (tested on google.com, yt and wikipedia.org), I also tried 'JavascriptEnabled=false' and is ineffective (pages like yt and google are rendered normally) however there are settings that are successfully applied, like 'ShowScrollBars=true' , Is this a limitation or what, unfort. I don't know what exactly to provide with this comment to make things more clear,
WORTH TO MENTION : I manually compiled weaver on *alpine linux* just using make, if this is related...
the config file :

;; WEAVER CONFIG
;; $XDG_CONFIG_HOME/weaver/config.conf
;; Configuration options are W.I.P and may change significantly

;; All lines starting with two semi-colons are explanatory comments.
;; Lines starting with a single semi-colon are commented out but otherwise valid settings.

[General]
;; - SearchPage
;;     Type: string
;;     Default: https://duckduckgo.com/?q=%1
;;     Description: Search engine to send non-url input to, %1 will be replaced with user input
;; - ValidUrl
;;     Type: regex string
;;     Default: [:/\\.]
;;     Description: entries *not* matching this are sent to the search page
;; - DownloadCmd
;;     Type: string
;;     Default: curl -s -o '/tmp/%2' '%1'
;;     Description: external download command; %1=url %2=suggested-filename
;; - InfoFormat
;;     Type: string
;;     Default: %1\t%2
;;     Description: %1=title %2=url %3=selected-text
;; - CloseKey
;;     Type: string
;;     Default: Ctrl+d
;;     Description: binding for closing a window to work around js window.close failure
;SearchPage=https://duckduckgo.com/?q=%1
;ValidUrl=[:/\\.]

[FeaturePermissions]
;; - <OptionName>[:<Domain>]
;;     Type: ternary (accept|reject|ask)
;;     Default: ask
;;     Description: option names and descriptions at https://doc.qt.io/Qt-5/qwebenginepage.html#Feature-enum
Notifications=reject
Geolocation=reject
;MediaAudioCapture:meet.jit.si=accept
;MediaVideoCapture:meet.jit.si=accept
;MediaAudioVideoCapture:meet.jit.si=accept

[WebAttributes]
;; - <OptionName>
;;     Type: boolean
;;     Default: as noted in the link below
;;     Description: option names, descriptions, and defaults at https://doc.qt.io/QT-5/qwebenginesettings.html#WebAttribute-enum
PluginsEnabled=true
DnsPrefetchEnabled=true
ShowScrollBars=false
ScrollAnimatorEnabled=true
FullScreenSupportEnabled=true
ForceDarkMode=true

[Cookies]
;; - AllowThirdParty
;;     Type: boolean
;;     Default: false
;; - Persistent=(no|allow|force)
;;     Type: ternary (no|allow|force)
;;     Default: allow
;; - <request-origin-domain>:<first-party-domain>
;;     Type: boolean
;;     Default: N/A (defaults to AllowThirdParty setting)
;;     Description: domain specific settings override any setting of "AllowThirdParty" for the specified pair of domains
;;     CAUTION: This needs testing! Please report any results of testing to code@jessemcclure.org

; vim: ft=dosini

Last edited by midgeek (2026-01-05 14:48:55)

#206 2026-01-05 16:04:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Here's a blast from the past.  I've not touched weaver's code in over two years - so I'm just thrilled it built successfully and functions [1].

Building just via "make" is correct - it would fail if dependencies were not found, but if `make` completes successfully, then you have a proper build.

Your configuration file is good.  ForceDarkMode is a new setting since I last worked on this, so that'd not work yet - I'll have to add that in [2].  But the javascript setting should apply.  It should be easy enough to trace down why the javascript setting isn't working, but give me a day or two to get some time to tinker with that.

---

[1] Note: many would point out that using an outdated browser can be risky, but that doesn't really apply here.  As long as weaver is built against an up-to-date webengine, there's no concern with weaver's wrapper code being a bit dated ... except that new settings will not be available until I add them.

[2] And hopefully upstream has made the web attributes into a Q_ENUM by now which would greatly simplify all the settings code and make it so I didn't need to manually add each new setting that becomes available from upstream.

EDIT:

I've just updated weaver to include new web attribute settings include ForceDarkMode.  I've tested here and both ForceDarkMode and JavascriptEnabled are working properly.  Could you retrieve the new code, rebuild and test again, and let me know which of these settings are working vs failing for you?

Last edited by Trilby (2026-01-05 16:53:14)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#207 2026-01-06 14:11:48

midgeek
Member
Registered: 2024-12-30
Posts: 8

Re: Weaver: qt6-webengine browser w/ minimal UI

Yes It is working now!
I'd like to thank you for both the sw itself and for responding to my issue.
Also for the 'JavascriptEnabled=false' option It is working on both versions, it's my fault, when forceDark didn't work I thought that somehow weaver looks at the config.conf located at /usr/share/doc.... not the one in my .config directory so I was editing the former the whole time, and I totally forgot that when i tested with another features.

#208 2026-01-06 20:34:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Thanks for circling back, I'm glad it's working.  Feel free to let me know if / when you run into other issues.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#209 2026-01-11 14:51:31

midgeek
Member
Registered: 2024-12-30
Posts: 8

Re: Weaver: qt6-webengine browser w/ minimal UI

Hello again!
I have been tinkering with weaver for the past few days and:
- There might be an issue in parsing the values in '[General]' section, they are ineffective and always work with only default values (tried on CloseKey only), I tried to investigate in this further and found out that this is related to section parsing or whatever (I'm not very informant about qt), but upon trying to modify the source code and trying to remove the section part entirely : 

value("General/CloseKey", "Ctrl+d")  -> value("CloseKey", "Ctrl+d") 

and this actually worked, my CloseKey assignment in the config file is now effective (both before or after the [General] section)

- Another thing, I was trying to add a few more shortcuts for the basic navigation actions (mainly back and forward), and I managed to introduce this functionality in the code so that I don't have to invoke weaver with back/forward actions, So I'am asking if this is relevant to you that I contribute with them

#210 2026-01-12 21:03:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Nice catch on the [General] section failing.  I confirmed the problem and that your solution worked - but that was immensely unsatisfying until I found related bug reports, apparently there's an aspect of how Qt handles ini files that a General section is created by default, and any settings in it are - apparently - accessible only without specifying the section name.  I've just push the fix for that.

I'd be happy to look at what you implemented for Back / Forward, but I'm not clear on your description.  Most key binding can / should be done in user-scripts - there's an example of a keybinding script provided in the source repo.  Note that while these are written in JS, userscripts are (supposed to be) processed even if / when all other JS is disabled in the browser.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#211 2026-01-13 10:57:15

midgeek
Member
Registered: 2024-12-30
Posts: 8

Re: Weaver: qt6-webengine browser w/ minimal UI

Oh wow.
I didn't pay much attention to these user scripts, I thought they can just delete an elemnt automatically or perform any simple tasks, but it makes sense that js can handle these key bindings, I think there is no need now for my approach of keybindings.

#212 2026-01-13 13:50:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Yup - initially I intended all key binding to done through user-scripts.  And I'd still like it to be that way, however there was a hurdle to a reliable JS binding for closing the window.  So I added the hard-coded CloseKey binding and have hated it but kept it as a necessary evil.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#213 2026-02-17 10:01:11

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

Hi, I started using weaver again (with archlinux this time).

I am not able to go back from opened PDF file. After opening PDF from any website, which opens with inbuilt QT pdf viewer, weaver keybindings for back/forward stops working and I am not able to go back.

#214 2026-02-18 19:21:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Unfortunately that's out of my control.  You can set the WebAttribute pdfViewerEnabled=false so they are downloaded instead of opened in pdfJS.  But once opened in pdfJS it grabs / overrides all bindings.  But the right-click context menu will still contain a "Back" option that works.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#215 2026-02-19 03:07:05

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

Thanks, I had missed that "Back" option in context menu. Atleast that allows to go back.

#216 2026-02-21 12:44:19

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

Hi,
How to use proxy with weaver? I am specifically looking to try socks5 with tor.

#217 2026-02-21 13:37:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

I have very little experience with proxies, but I just pushed a code revision that should implement SOCKS5 for weaver.  This is configured for now via the the required environment variable "weaver_proxy_host".  If this variable is set in the environment that launches weaver, it will enable Qt6's SOCKS5 proxy and will pick up the optional additional environment variables of "weaver_proxy_port", "weaver_proxy_username", and "weaver_proxy_password".

If you use this, some requirements:

1) Test it.  Do not assume it is working properly, test it, then test it some more.  As such settings can be used for security purposes I urge again, do not assume it is working properly until you have thoroughly tested it.  I am happy to work to implement this better, but I take no responsibility for it failing to enable properly and provide the desired / intended security.

2) Watch here for changes.  If this works, I'll look into better ways of configuring the settings, likely by using more generic system-wide variable names.  And each change in the code will require more testing to confirm it is working properly.

3) Note that settings are application-wide.  The environment variables must be set for the initial launch of the first weaver window.  All subsequent windows are part of the same process and use the same proxy settings.  Having different proxy settings for different windows would take more work and I'm not sure I'd be motivated to implement or support that (not that I don't recognize the value of such goals, but it's just out of scope for the simplistic goals of weaver).

Last edited by Trilby (2026-02-21 13:38:36)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#218 2026-02-21 15:50:23

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

failed to build with

src/weaver.cpp: In function ‘int init()’:
src/weaver.cpp:62:5: error: ‘qEnvironmentVariableSet’ was not declared in this scope; did you mean ‘qEnvironmentVariableIsSet’?
   62 | if (qEnvironmentVariableSet("weaver_proxy_host")) {
      |     ^~~~~~~~~~~~~~~~~~~~~~~
      |     qEnvironmentVariableIsSet
src/weaver.cpp:67:72: error: expected ‘)’ before ‘;’ token
   67 |                 proxy.setPort(qEnvironmentVariable("weaver_proxy_port");
      |                              ~                                         ^
      |                                                                        )
make: *** [<builtin>: weaver.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

#219 2026-02-21 19:33:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

@Docbroke

Oops, sorry about that - I pushed the wrong version that wasn't finished hmm

I just pushed the proper version.

Last edited by Trilby (2026-02-22 03:50:06)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#220 2026-02-22 03:28:51

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,455

Re: Weaver: qt6-webengine browser w/ minimal UI

Hi,
I tried this new version with

weaver_proxy_host=socks5://localhost
weaver_proxy_port=9050
weaver //target/0 //open/https://check.torproject.org/

But the page says "you are not using tor" and displays my real IP. My tor service is running properly and I am able to connect using firefox.

#221 2026-02-22 03:28:58

ReDress
Banned
From: Nairobi
Registered: 2024-11-30
Posts: 350

Re: Weaver: qt6-webengine browser w/ minimal UI

Elaborate?

If you just don't have a 'back' feature on browser, it means the browser is incognito.

You might disagree on that, based on the fact that modern browsers have a 'back' feature even in incognito mode, but yeah. This is it.

The AI seemed to pick it up very quickly, for some strange reason.

Last edited by ReDress (2026-02-22 03:30:41)

#222 Today 14:46:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,464
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Oops - sorry I lost track of this Docbroke.

I'm not sure why the proxy settings don't work.  AFAICT I've implemented it precisely according to the QT docs to use the proxy system they built in to qt6-webengine and that's the only option available to me as I'd trust them to do it right (or right enough).  I wouldn't think of trying to implement something like that myself - at least not in software I'd share for others to use as it would provide a likely-false sense of security (as I am not qualified to know if I did it properly).

But also more broadly, weaver is quite sadly effectively abandoned.  I am no longer comfortable using it myself.  It met every goal I'd want in a browser for quite some time.  But the web has become such a cesspool of ads, and trackers, and yet newer infestations that even browsing a simple page is unmanageable without a powerful add / tracker blocker.  For years an extensive /etc/hosts block list worked well, but that is no longer sufficient (at least for me to comfortably use a browser).

So I faced a choice of building a plug-in system for weaver that would allow the use of a well-respected third party blocker (e.g., uBlock Origin, Privacy Badger, Ghostery, or something along those lines) - either that or set aside weaver in favor of one of the major browsers that can use those blockers.  For my own use I opted for the latter.  It was a hard choice and I was sad to have to make it - but fighting off the ever increasing onslaught of shit-on-the-web is just far more than I can handle.

If anyone else has interest in taking over weaver, feel free to fork the code and run with it.  And let me know if there is interest in adopting the AUR package as I'll gladly hand it off.  For the time being I'll not yet orphan it on the AUR due to the current influx of malicious actors adopting orphaned packages.  I'll keep it under my name so anyone who tries to build it will - at worst - get my old code with accidental bugs rather than some AI-generated code with deliberate malware.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman