New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electrum: Add QT_QPA_PLATFORM_PLUGIN_PATH #33146
Conversation
This fixes an error that prevents the program from starting: "This application failed to start because it could not find or load the Qt platform plugin"
cc @joachifm |
Thank you but I've decided against doing this: see e.g., #31470 (comment) and #32642 (comment) |
@joachifm the comments claim that this is not a problem one NixOS. However, I am running NixOS, did install the package using Grepping for |
cc @ttuegel |
I see, but note that many anti-patterns propagate via copy-n-paste. I'll defer to the qt maintainers on this one. |
Please don't do this; the result will be an application that may work under some desktop environments but not others.
To begin with: What version of NixOS are you running? What version of Qt is installed in your system profile? What version of Qt is installed in your user profile? |
@ttuegel: Sorry to piggyback on this, but I have the same problem with Krita, where I can't run it on Travis CI (required for build to convert .kra files to .png) without setting I would really like to drop it from the build system and move it into Nixpkgs. It can be reproduced on any Linux machine that has Nix installed:
What is the current way around this? Setting it in |
Yes, you could set it in |
If revert will result in breakage, I'd rather have Krita broken in |
The current situation is: Qt applications are broken in nix-shell, but work if the user installs them following the instructions. But integration plugins (themes, non-standard input methods, etc.) work! Of course, that hardly matters if the application doesn't run. And if the maintainer sets The alternative is: Qt applications work everywhere, but integration plugins (themes, input methods) may be broken if the package maintainer and user don't follow instructions. This is essentially the state of affairs with GTK 3, and everybody seems happy enough with that. In that light, the alternative seems strictly less broken than the current state of affairs, and anyway I cannot keep fielding the same bug reports over and over and over. |
@ttuegel @joachifm without this change, what are the instructions for running QT apps that have this problem without requiring some nix-shell wrapping for them? I agree with @yegortimoshenko that I'd rather have this broken in |
I don't understand; Qt applications do work in |
@ttuegel check this out:
|
@ttuegel could it be that you already have |
Fwiw, on non-NixOS hosts I've had to set those variables and |
I just tried adding this to my
However, |
Motivation for this change
This fixes an error that prevents the program from starting:
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)