1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

launcher: fix os logo on multi-monitor

This commit is contained in:
bbedward
2025-10-15 13:22:50 -04:00
parent 63b876479f
commit f281513a41

View File

@@ -10,13 +10,14 @@ 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("systemLogo", ["sh", "-c", ". /etc/os-release && echo $LOGO"], (output, exitCode) => {
Proc.runCommand(uniqueId, ["sh", "-c", ". /etc/os-release && echo $LOGO"], (output, exitCode) => {
if (exitCode !== 0) return
const logo = output.trim()
if (logo === "cachyos") {