Subject: Re: bug#68483: Qutebrowser QT platform plugin could not be initialized

From: Sergey Trofimov <[email-masked]>
Date: Tue, 16 Jan 2024 07:38:22 +0100

chris <[email-masked]> writes:

> On  1月15日 月, Josselin Poiret wrote:
>> Hi chris,
>>
>> chris <[email-masked]> writes:
>>
>> > Related to https://issues.guix.gnu.org/67289#7
>> >
>> > Here is the qutebrowser 3 process shell output. Would anyone recommend a solution?
>> > ```
>> > $ qutebrowser
>> > 20:40:33 WARNING: Could not find the Qt platform plugin "wayland" in ""
>>
>> Have you installed qt-wayland?  Are you setting QT_QPA_PLATFORM
>> anywhere?
>
> Hey Josselin,
>
> I've tried installing qtwayland through guix home by specifying "qtwayland" in
> my home config file. QT_QPA_PLATFORM is specified in my home config this way
>

Here you go:
```sh
qtw=$(guix build qtwayland@6)/lib/qt6/plugins
QT_PLUGIN_PATH=$qtw QT_QPA_PLATFORM_PLUGIN_PATH=$qtw/platforms qutebrowser -s qt.force_platform wayland
```

Maybe a qutebrowser-wayland package variant should be defined to do the
required wrapping. Otherwise you can just install qtwayland@6 to your
profile and use ~/.guix-home/profile/lib/qt6/plugins in paths.