CRT clears the QT_QPA_PLATFORMTHEME environment variable for child processes #852

Open
opened 2024-08-02 07:55:55 +02:00 by Botspot · 1 comment
Botspot commented 2024-08-02 07:55:55 +02:00 (Migrated from github.com)

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.

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](https://github.com/Botspot/pi-apps).
Botspot commented 2024-08-02 07:58:22 +02:00 (Migrated from github.com)

It seems that the variable is cleared deliberately. f157648d1e/app/main.cpp (L36)

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

It seems that the variable is cleared deliberately. https://github.com/Swordfish90/cool-retro-term/blob/f157648d1e51878a10e02a8836c1e15aa8c59cc9/app/main.cpp#L36 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#852
No description provided.