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: keep wrapper's WM_CLASS consistent with unwrapped binary #44909
Conversation
This might be a more general issue beyond zathura. Is it better to change wrapProgram to not rename binary? |
Related #31720 |
Ahh I see it's difficult... 9deb7f8#diff-9b66ee4614cafec580d4df291629ef47 76f4eb5#diff-9b66ee4614cafec580d4df291629ef47 |
This is probably an issue with Zathura. They need to set |
In |
@GrahamcOfBorg build 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.
From what I understand, you remove binaries of zathura_core
by separating them into a separate output bin
, which you later omit in the paths
for symlinkJoin
. The remaining parts are separated into three outputs man
, dev
and out
, but they don't do much for the user because zathura_core
is not exposed at the moment. You could instead do rm "$out/bin/zathura"
in postBuild
of the wrapper and then makeWrapper
the same way as you do now. Your way appears to me to be a bit implicit, but also it is a bit less hacky (no making and then deleting a symlink).
The other thing that you do is you remove one layer of wrappers, which renders zathura_core
potentially unable to locate file
, but this should be fine as long as we don't expose zathura_core
to the users.
Overall, I think, this PR is good and it does solve the problem.
Thank you for merging! |
Motivation for this change
zathura's
WM_CLASS
property is inconsistent with what it was in the unwrapped zathura.This makes some trouble when, in my case, adding a window rule for zathura in bspwm. I expected the following rule works:
But actually I needed to do this:
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)