-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
okular: Unable to open (Drawing|Annotating)Tools XML when being run via nix-shell #30977
Comments
might be related to #24472 (although I can't find the mentioned |
Qt applications are not expected to work from |
@ttuegel Didn't know that, and also didn't find it in the documentation. ;-) Is this something that should be fixed (and already tracked in an issue)? Or something that most likely can't be fixed? |
That is tricky. I don't know how to fix it without breaking Qt plugins. For example, many KDE programs provide Qt plugins for interoperability; this is how you get a Konsole (terminal) window inside a Dolphin (file manager) window if Konsole is installed (and otherwise not). This type of integration seems like a core feature of desktop applications and I really don't want to do that. Having said that, most likely it CAN be fixed, but so far I don't know how. |
@ttuegel Just a quick thought, (maybe needs some more time to think about it): Couldn't we construct a In that way, discovery of non-essential plugins (no buildInputs) should still be possible using the "shared Of course, this would mean some Qt applications relying on plugins might need to be wrapped if it's not possible to set |
@ttuegel I think there should be an issue to track Qt application problems so we don't get so many of these issues on Github each time, an issue that links into this issue, and also my issue with masterpdfeditor. |
Yes, we used to do it this way, but...
...this actually compounds the problem. Recall, all dynamic linking takes place in a single namespace. If we have some hardcoded plugins and some runtime-detected plugins, this raises the possibility that they will want different versions of the same library (either different Nix hash, or different soversion). I am increasingly in favor of disabling all runtime plugin detection and hardcoding everything with wrappers. It would at least turn all these inexplicable problems into simple missing-dependency problems. I may address that in the future, but at the moment I have a different Qt feature branch I am trying to merge.
All Qt applications would need to be wrapped, similar to |
@ttuegel I run into the same problem, but with okular included in environment.systemPackages. Is that also not considered an environment? What is the proper way to install okular system-wide, then? |
That is the correct way to install Okular system-wide, but I cannot reproduce the problem. Could you point me to your |
I have a similar issue, and unless I also list the package
|
Issue description
When starting Okular via
nix-shell
(without okular installed in the environment), it prints above two error messages, and annotation features don't work.strace tells me it is searching for
drawingtools.xml
andtools.xml
in the following directories and order:Steps to reproduce
nix-shell -p okular --run okular
On a system without
okular
being currently installed.Technical details
/cc @ttuegel
The text was updated successfully, but these errors were encountered: