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
wrapQtAppsHook: wrap binaries in all outputs #92710
base: staging
Are you sure you want to change the base?
Conversation
|
I was working on #85306, because I wanted to use Adding
This took me a while to figure out and was a bit surprising. Allowing If only running for the first output the expected behavior, it might be be worth a comment in |
For reference, $ qdbusviewer
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-org.kde.kwin.qpa.
Aborted (core dumped) |
|
for prefix in "${qtFixupPrefixSeen[@]}" | ||
do | ||
if [ "${prefix:?}" == "$1" ] | ||
then | ||
return 1 | ||
fi | ||
done | ||
|
||
qtFixupPrefixSeen+=("$1") | ||
return 0 | ||
} |
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.
for prefix in "${qtFixupPrefixSeen[@]}" | |
do | |
if [ "${prefix:?}" == "$1" ] | |
then | |
return 1 | |
fi | |
done | |
qtFixupPrefixSeen+=("$1") | |
return 0 | |
} | |
for prefix in "${qtFixupPrefixSeen[@]}": do | |
if [ "${prefix:?}" == "$1" ]: then | |
return 1 | |
fi | |
done | |
qtFixupPrefixSeen+=("$1") | |
return 0 | |
} |
@ttuegel do you think we can merge this? |
I marked this as stale due to inactivity. → More info |
Problem still exists. |
|
Doesn't work for me:
|
Oh, maybe it's working for me because I have |
I marked this as stale due to inactivity. → More info |
Up. |
Motivation for this change
wrapQtAppsHook
currently only wraps the binaries from the first output. All other outputs are skipped.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)