Skip to content

launch: Fix WebEngineView crash from empty arguments - #1520

Open
gavinomelia wants to merge 1 commit into
quickshell-mirror:masterfrom
gavinomelia:launch-argv0
Open

gavinomelia wants to merge 1 commit into
quickshell-mirror:masterfrom
gavinomelia:launch-argv0

Conversation

@gavinomelia

Copy link
Copy Markdown

Describe your changes

The Qt application was being created with no arguments. This meant that trying to use a WebEngineView in a Quickshell config would cause the whole Quickshell process to crash with FATAL: Argument list is empty. This is because the QtWebEngine requires the program name.

This change just passes through the name and is consistent with what is being done elsewhere (see src/launch/command.cpp:587-588.

Fixes #1393

Details and descisions

I think the decisions here should be relatively self-explanatory as this is a one-line change.

Participation

I care. Thanks for taking the time to review things and contribute to the open-source community.

@jbe

jbe commented Nov 26, 2026

Copy link
Copy Markdown

I have the same qArgC = 1 as a patch in my NixOS. Have been using WebEngineView for toggleable web app trays in quickshell and hyprland without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebEngineView aborts Quickshell: QGuiApplication is constructed with argc = 0

2 participants