Open vavakado opened 3 months ago
I am not having this problem, is this happening for you with any other QT apps?
No, ie lxqt.qterminal
launches with no problem.
Weird, I just tested it on wayland(hyprland) and it ran with no problem.
What were you running initially? I can try testing it.
On x11 with herbstluftwm
Same issue here on hyprland. I have these related env variables set:
environment.sessionVariables = { QT_AUTO_SCREEN_SCALE_FACTOR = "1"; QT_QPA_PLATFORM = "xcb"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; XDG_CURRENT_DESKTOP = "Hyprland"; XDG_SESSION_DESKTOP = "Hyprland"; XDG_SESSION_TYPE = "wayland"; };
When I run QT_DEBUG_PLUGINS=1 protonup-qt
, I get the following output: https://pastebin.com/qYDqaKgv
These thread suggest defining the QT_QPA_PLATFORM_PLUGIN_PATH
variable, but neither worked for me:
https://discourse.nixos.org/t/python-qt-qpa-plugin-could-not-find-xcb/8862
https://discourse.nixos.org/t/how-can-i-build-a-python-package-that-uses-qt/7657
I believe on Hyprland it's recommended to set QT_QPA_PLATFORM = "wayland;xcb". That will default to using QTs Wayland backend and fall back to X11.
Thanks for sharing the output, I'll have a look.
Adding wayland to QT_QPA_PLATFORM gave me the same result.
In regards to the Could not find the Qt platform plugin "xcb" in ""
, the NixOS wiki on Qt says, "The package will need to be fixed to use [the new https://github.com/NixOS/nixpkgs/issues/65399 wrapQtAppsHook
]. The hook wraps every qt application with adding QT_PLUGIN_PATH
and XDG_DATA_DIRS
as well as XDG_CONFIG_DIRS
.See wrap-qt-apps-hook.sh in nixpkgs
I believe on Hyprland it's recommended to set QT_QPA_PLATFORM = "wayland;xcb". That will default to using QTs Wayland backend and fall back to X11.
Thanks for sharing the output, I'll have a look.
i am also having the same issue
[zie@nixos:~/.dotfiles]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.6.32, NixOS, 24.11 (Vicuña), 24.11.20240605.e8057b6`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.2`
- channels(root): `"nixos-24.05"`
- nixpkgs: `/nix/store/8s55w0927lh3mdbkxf434zb0c5hqsz8z-source`
forgot to add, im on x11 with i3-gaps
Update: looks like QT_QPA_PLATFORM = "wayland;xcb"
only registers after a reboot. So that part is working, but now I have a new error that I'm not sure how to solve: Cannot mix incompatible Qt library (6.7.1) with this library (6.7.0)
Probably mismatched Qt versions between what protonup-qt is built against and what your system currently has. (Happens with Mesa a lot too) Try updating your system to use a newer version of Nixpkgs, or build protonup-qt with a newer version of Nixpkgs
@pluiedev I think you're right. I installed the protonup-qt flatpak and it works fine.
Encountering the same issue with an upgraded system(X11 I3wm)
Describe the bug
On launch protonup-qt tells that it couldn't load qt platform.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Working protonup-qt
Additional context
Notify maintainers
@michaelBelsanti
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.