Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-07-03 20:16:05

zub
Member
Registered: 2023-01-18
Posts: 46
LinuxFirefox 141.0

always apply env variables at app launch OR use selected .desktop

In order to resolve some weird HiDPI issues, I have created a launcher ~/.local/share/applications/kate-hidpi.desktop containing, in part

Exec=env QT_FONT_DPI=110 QT_SCALE_FACTOR=1.2 QT_ENABLE_HIGHDPI_SCALING=0 kate %U
Name=Kate (HiDPI)

It works if I open from Rofi or  xfce4-appfinder.

But if I open an associated file type (such as a text file) by another way, such as

- Firefox Library > Downloads
- open from Thunar or other file manager
- terminal $ kate file.txt

it will open without the envs.

I could individually solve these such as make a shell alias for the terminal, file type associations in thunar etc, but it's way too much to maintain.

This isn't unique to just Kate. I have a bunch of applications that require the same treatment. BUT some applications react weirdly to them and work better with the default or a different set of environment values to solve the same issue. So therefore I do not want to universally export the variables.

Is there a way to do this on a user or system level?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 8 queries executed - Memory usage: 528.71 KiB (Peak: 529.34 KiB) ]