qt5-wayland as optional dependency

Description:

If one has QT_QPA_PLATFORM=wayland set in order to force QT applications to pick up wayland (instead of xwayland), keepassxc will fail. This is easily solvable by installing qt5-wayland. I would suggest adding qt5-wayland as optional dependency in order to help novice users to know what to install.

Additional info:

  • package version(s)
$ pacman -Qi keepassxc
Name            : keepassxc
Version         : 2.7.6-2
Description     : Cross-platform community-driven port of Keepass password manager
Architecture    : x86_64
URL             : https://keepassxc.org/
Licenses        : GPL
Groups          : None
Provides        : org.freedesktop.secrets
Depends On      : argon2  botan  curl  hicolor-icon-theme  libxtst  minizip  pcsclite  qrencode  qt5-svg  qt5-x11extras  libusb
Optional Deps   : xclip: keepassxc-cli clipboard support under X server
                  wl-clipboard: keepassxc-cli clipboard support under Wayland
Required By     : None
Optional For    : git  libsecret
Conflicts With  : None
Replaces        : None
Installed Size  : 26.30 MiB
Packager        : Robin Candau <antiz@archlinux.org>
Build Date      : Mon 09 Oct 2023 08:40:53 PM CEST
Install Date    : Mon 27 Nov 2023 03:33:23 PM CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
  • config and/or log files etc.
  • link to upstream bug report, if any

Steps to reproduce:

$ QT_QPA_PLATFORM=wayland keepasxc

see it failing, complaining that a suitable QT plugin was not found and the list of available plugins is missing wayland.

Additionally, I see wl-clipboard being mentioned as dependency in order to support clipboard on Wayland but I don't have it installed and still I can copy paste from KeepassXC to Gnome Console for example under Gnome Wayland session.

Edited by Dan Andresan