mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-15 02:02:08 -04:00
audio: strip file:// prefix for local dir sounds
This commit is contained in:
@@ -69,7 +69,7 @@ Singleton {
|
|||||||
const xdgDataDirs = Quickshell.env("XDG_DATA_DIRS")
|
const xdgDataDirs = Quickshell.env("XDG_DATA_DIRS")
|
||||||
const searchPaths = xdgDataDirs && xdgDataDirs.trim() !== ""
|
const searchPaths = xdgDataDirs && xdgDataDirs.trim() !== ""
|
||||||
? xdgDataDirs.split(":")
|
? 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 basePaths = searchPaths.map(p => p + "/sounds").join(" ")
|
||||||
const script = `
|
const script = `
|
||||||
|
|||||||
Reference in New Issue
Block a user