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

CRT clears the QT_QPA_PLATFORMTHEME environment variable for child processes #852

Open
Botspot opened this issue Aug 2, 2024 · 1 comment

Comments

@Botspot
Copy link

Botspot commented Aug 2, 2024

I tried running some QT5 apps from CRT and noticed that they were not using their usual dark mode.
It turns out that CRT has cleared this variable. Why is that, and can it be fixed?

I found this by comparing the differences from running env in Cool Retro Term versus LXTerminal. Normally, QT_QPA_PLATFORMTHEME=qt5ct.

OS information: Raspberry Pi OS Bookworm 64-bit, CRT was installed using Pi-Apps.

@Botspot
Copy link
Author

Botspot commented Aug 2, 2024

It seems that the variable is cleared deliberately.

setenv("QT_QPA_PLATFORMTHEME", "", 1);

As an easy fix, could the variable's original value be captured, and then passed to child processes that are launched by the shell?

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

1 participant