shell: set QT_QPA_PLATFORMTHEME env

Hopefully fixes most people's icon issues

Fixes caelestia-dots/shell@390
This commit is contained in:
2 * r + 2 * t
2025-08-19 17:15:36 +10:00
parent f2a9bf2490
commit 99142f11ad
+7 -1
View File
@@ -1,3 +1,4 @@
import os
import subprocess import subprocess
from argparse import Namespace from argparse import Namespace
@@ -32,7 +33,12 @@ class Command:
args.append("-d") args.append("-d")
subprocess.run(args) subprocess.run(args)
else: else:
shell = subprocess.Popen(args, stdout=subprocess.PIPE, universal_newlines=True) shell = subprocess.Popen(
args,
stdout=subprocess.PIPE,
universal_newlines=True,
env=dict(os.environ, QT_QPA_PLATFORMTHEME="gtk3"),
)
for line in shell.stdout: for line in shell.stdout:
if self.filter_log(line): if self.filter_log(line):
print(line, end="") print(line, end="")