-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Opening different QT applications with systems QT_QPA_PLATFORM #1193
Comments
using xcb is rather a last resort which may work for usual apps but is bad for app launchers. i unset the var from env, but I wonder if launched apps will pick up your qt6ct env. |
Probably it'd better to put some work into https://github.com/Skycoder42/QHotkey such that it does not segfault on wayland. |
Thank you for fixing this so quickly! |
Check 0.20.8 does it work out? |
Oh I thought it would be fixed however I just installed albert newly from https://aur.archlinux.org/packages/albert-git I checked the albert version and the QT env variables but they seem to be correct.
|
Well that's what I expected. Setting xcb is not a real solution since envs are inherited. Are there any errors printed when it crashes if you run Albert with Wayland platform? |
Interestingly Albert does not crash anymore when run without setting xcb as platform. The bug with okular remains even when not setting xcb.
and with xcb:
|
Dropped the QT_QPA_PLATFORM unsetting line. Will be in the next version. Please help getting things to work without this xcb hack, since it simply does not apply to application launchers. |
have you had problems using this |
Description
I just updated to version 0.20.3 (I am coming from 0.17* and skipped the major update at 0.18). I am using the file extension to search for pdfs and start them in my default viewer okular. This was working fine before but now okular starts in an unreadable state. However if I manually go to the pdf via my local file manager and open the pdf then everything works as expected. I suspect that this bug is related to the wayland issues at #958
because there it is suggested to start albert with
QT_QPA_PLATFORM=xcb albert
. So I tried to start okular with different QT settings.If I call
okular
from the terminal and using the system QT settings everything works.However calling
QT_QPA_PLATFORM=xcb okular
will lead to the same buggy okular:My env QT settings are:
I also tried to start albert without overwriting the env variable but then nothing works. Albert already crashes when trying to display the settings...
Expected behavior
opening files/applications using the system env parameters
Source
installed from https://aur.archlinux.org/packages/albert
Debug output
The text was updated successfully, but these errors were encountered: