summaryrefslogtreecommitdiff
path: root/modules/dashboard
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-09 18:05:23 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-09 18:35:22 +1000
commit717855c62963fcad2f511e180d82add98f4f73e3 (patch)
tree598113a9f7003ff5a0bf78854059f1a31d8feb75 /modules/dashboard
parentlauncher: allow configuring actions (#558) (diff)
downloadcaelestia-shell-717855c62963fcad2f511e180d82add98f4f73e3.tar.gz
caelestia-shell-717855c62963fcad2f511e180d82add98f4f73e3.tar.bz2
caelestia-shell-717855c62963fcad2f511e180d82add98f4f73e3.zip
internal: use Qt.resolvedUrl
Diffstat (limited to 'modules/dashboard')
-rw-r--r--modules/dashboard/Wrapper.qml2
1 files changed, 1 insertions, 1 deletions
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)}`]);