1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

audio: strip file:// prefix for local dir sounds

This commit is contained in:
bbedward
2025-10-27 10:59:07 -04:00
parent a284dcf61d
commit 61c8549401

View File

@@ -69,7 +69,7 @@ Singleton {
const xdgDataDirs = Quickshell.env("XDG_DATA_DIRS")
const searchPaths = xdgDataDirs && xdgDataDirs.trim() !== ""
? xdgDataDirs.split(":")
: ["/usr/share", "/usr/local/share", StandardPaths.writableLocation(StandardPaths.HomeLocation) + "/.local/share"]
: ["/usr/share", "/usr/local/share", Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation) + "/.local/share")]
const basePaths = searchPaths.map(p => p + "/sounds").join(" ")
const script = `