diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-09 18:05:23 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-09 18:35:22 +1000 |
| commit | 717855c62963fcad2f511e180d82add98f4f73e3 (patch) | |
| tree | 598113a9f7003ff5a0bf78854059f1a31d8feb75 /modules | |
| parent | launcher: allow configuring actions (#558) (diff) | |
| download | caelestia-shell-717855c62963fcad2f511e180d82add98f4f73e3.tar.gz caelestia-shell-717855c62963fcad2f511e180d82add98f4f73e3.tar.bz2 caelestia-shell-717855c62963fcad2f511e180d82add98f4f73e3.zip | |
internal: use Qt.resolvedUrl
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/areapicker/Picker.qml | 2 | ||||
| -rw-r--r-- | modules/bar/components/TrayItem.qml | 2 | ||||
| -rw-r--r-- | modules/bar/components/workspaces/SpecialWorkspaces.qml | 2 | ||||
| -rw-r--r-- | modules/dashboard/Wrapper.qml | 2 | ||||
| -rw-r--r-- | modules/lock/Media.qml | 2 | ||||
| -rw-r--r-- | modules/lock/NotifDock.qml | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml index 14b70b7..d51d1f3 100644 --- a/modules/areapicker/Picker.qml +++ b/modules/areapicker/Picker.qml @@ -76,7 +76,7 @@ MouseArea { } function save(): void { - const tmpfile = `file:///tmp/caelestia-picker-${Quickshell.processId}-${Date.now()}.png`; + const tmpfile = Qt.resolvedUrl(`/tmp/caelestia-picker-${Quickshell.processId}-${Date.now()}.png`); CUtils.saveItem(screencopy, tmpfile, Qt.rect(Math.ceil(rsx), Math.ceil(rsy), Math.floor(sw), Math.floor(sh)), path => Quickshell.execDetached(["swappy", "-f", path])); closeAnim.start(); } diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml index 1f0a21c..6e7c2c5 100644 --- a/modules/bar/components/TrayItem.qml +++ b/modules/bar/components/TrayItem.qml @@ -30,7 +30,7 @@ MouseArea { let icon = root.modelData.icon; if (icon.includes("?path=")) { const [name, path] = icon.split("?path="); - icon = `file://${path}/${name.slice(name.lastIndexOf("/") + 1)}`; + icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`); } return icon; } diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index 7bebe41..61ec723 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -22,7 +22,7 @@ Item { required property Item source readonly property Item maskSource: mask - fragmentShader: `file://${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb` + fragmentShader: Qt.resolvedUrl(`${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb`) } Item { diff --git a/modules/dashboard/Wrapper.qml b/modules/dashboard/Wrapper.qml index b79c890..95c57b8 100644 --- a/modules/dashboard/Wrapper.qml +++ b/modules/dashboard/Wrapper.qml @@ -22,7 +22,7 @@ Item { filterLabel: qsTr("Image files") filters: Images.validImageExtensions onAccepted: path => { - if (CUtils.copyFile(`file://${path}`, Qt.resolvedUrl(`${Paths.home}/.face`))) + if (CUtils.copyFile(Qt.resolvedUrl(path), Qt.resolvedUrl(`${Paths.home}/.face`))) Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "low", "-h", `STRING:image-path:${path}`, "Profile picture changed", `Profile picture changed to ${Paths.shortenHome(path)}`]); else Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "critical", "Unable to change profile picture", `Failed to change profile picture to ${Paths.shortenHome(path)}`]); diff --git a/modules/lock/Media.qml b/modules/lock/Media.qml index 5046712..79bd285 100644 --- a/modules/lock/Media.qml +++ b/modules/lock/Media.qml @@ -31,7 +31,7 @@ Item { required property Item source readonly property Item maskSource: mask - fragmentShader: `file://${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb` + fragmentShader: Qt.resolvedUrl(`${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb`) } opacity: status === Image.Ready ? 1 : 0 diff --git a/modules/lock/NotifDock.qml b/modules/lock/NotifDock.qml index 0a76545..ac40319 100644 --- a/modules/lock/NotifDock.qml +++ b/modules/lock/NotifDock.qml @@ -49,7 +49,7 @@ ColumnLayout { Image { asynchronous: true - source: `file://${Quickshell.shellDir}/assets/dino.png` + source: Qt.resolvedUrl(`${Quickshell.shellDir}/assets/dino.png`) fillMode: Image.PreserveAspectFit sourceSize.width: clipRect.width * 0.8 |