Skip to content
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

Location of the QT plugins #2

Open
fiersik opened this issue Jan 18, 2025 · 5 comments
Open

Location of the QT plugins #2

fiersik opened this issue Jan 18, 2025 · 5 comments

Comments

@fiersik
Copy link

fiersik commented Jan 18, 2025

The libraries libhyprland-quick-style-impl.so and libhyprland-quick-style.so do not have their own SOVERSION and logically appear to be plugins. If that is the case, shouldn't they be installed in QT_PLUGIN_DIR (e.g., /usr/lib64/qt6/plugins/)? Currently, they are being installed in LIBDIR. Is this correct, or is it a mistake?

@vaxerski
Copy link
Member

@outfoxxed

@outfoxxed
Copy link
Member

I picked the libdir instead of qt's plugin dir because both qt itself and kde package qml modules the same way. We could try the plugin dir but it doesn't seem to be the conventional way to handle it.

@fiersik
Copy link
Author

fiersik commented Jan 19, 2025

In my opinion, it is better to follow the concept, this is a plugin, and it has no place in libdir.

@fiersik
Copy link
Author

fiersik commented Jan 19, 2025

How about searching for a plugin first in one directory and then in another?

@outfoxxed
Copy link
Member

outfoxxed commented Jan 19, 2025

Library dependencies such as the ones between the exported .so files are usually resolved via RUNPATH or RPATH. Not putting it there makes it impossible for the dynamic linker to find.

Additionally the libraries you see in /lib aren't actually qt plugins. The plugin binaries live inside their respective qml module folders.

While it's possible to change the rpath, it shouldn't go in the plugins folder, anddepending on the distro it may be replaced with a more generic string.

If you can find some other qt applications successfully packaged with a qml module rpath I can look further into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants