1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

common: dont require id in runCommand helper

This commit is contained in:
bbedward
2025-10-15 14:53:23 -04:00
parent ed2afa03f9
commit 59d123a4a1
3 changed files with 10 additions and 10 deletions

View File

@@ -10,14 +10,13 @@ IconImage {
property real contrastOverride: 1
readonly property bool hasColorOverride: colorOverride !== ""
readonly property string uniqueId: `systemLogo_${Math.random()}`
smooth: true
asynchronous: true
layer.enabled: hasColorOverride
Component.onCompleted: {
Proc.runCommand(uniqueId, ["sh", "-c", ". /etc/os-release && echo $LOGO"], (output, exitCode) => {
Proc.runCommand(null, ["sh", "-c", ". /etc/os-release && echo $LOGO"], (output, exitCode) => {
if (exitCode !== 0) return
const logo = output.trim()
if (logo === "cachyos") {