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
zathura: symlinkJoin all plugins #49141
Conversation
|
||
buildInputs = [ makeWrapper ]; | ||
|
||
postBuild = '' | ||
wrapProgram $out/bin/zathura --add-flags --plugins-dir=${pluginsPath} | ||
wrapProgram $out/bin/zathura --add-flags --plugins-dir="''${out}/lib/zathura" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know anything about zathura, but is the wrapper still needed now that plugins are in an "usual" location ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to remove it but without it, zathura tries to load plugins from zathura-core store, while symlinkJoin creates a new folder zathura-with-plugins.
Timed out, unknown build status on x86_64-linux (full log) Attempted: zathura Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: zathura Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve merge conflicts
Triage: Is this PR still relevant? |
without it, I don't see the zathura desktop. I can't solve the conflict for now but will do. |
I see zathura in nautilus:
Though it is possible this is because I've once added:
To |
no problem ! really happy to see someone else take a shot at this. I've carried the patch in my fork since then but wondered if it was still relavant. Apparently yes :) |
Motivation for this change
Zathura is not registered as a pdf reader, for instance nautilus doesn't propose it as a pdf reader.
It's because the default .desktop file doesn't contain any MimeType, these are provided by the plugins see https://git.pwmt.org/pwmt/zathura/issues/45#note_416.
Instead of copying the .desktop entries, I relied on the already present symlinkJoin.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)