mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
shell: set QT_QPA_PLATFORMTHEME env
Hopefully fixes most people's icon issues Fixes caelestia-dots/shell@390
This commit is contained in:
@@ -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="")
|
||||||
|
|||||||
Reference in New Issue
Block a user