proton-authenticator: fix crash on Wayland
- Set `WEBKIT_DISABLE_COMPOSITING_MODE=1` to prevent WebKitGTK from crashing on Wayland (`Error 71` and `Failed to create GBM buffer`). - Migrate from manual `wrapProgram` to `gappsWrapperArgs` in `preFixup` to avoid double-wrapping, as `wrapGAppsHook4` is already used in `nativeBuildInputs`. Closes #501569
This commit is contained in:
@@ -37,12 +37,16 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
install -Dm755 usr/bin/proton-authenticator $out/bin/${finalAttrs.meta.mainProgram}
|
||||
cp -r usr/share $out
|
||||
|
||||
wrapProgram "$out/bin/${finalAttrs.meta.mainProgram}" \
|
||||
--prefix GIO_EXTRA_MODULES : "${glib-networking}/lib/gio/modules"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix GIO_EXTRA_MODULES : "${glib-networking}/lib/gio/modules"
|
||||
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
|
||||
)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Two-factor authentication manager with optional sync";
|
||||
homepage = "https://proton.me/authenticator";
|
||||
|
||||
Reference in New Issue
Block a user