dashboard: fix pfp picker

Fixes #579
This commit is contained in:
2 * r + 2 * t 2025-09-09 18:00:03 +10:00
parent 5902988a77
commit 0d8771cf4d

View file

@ -22,7 +22,7 @@ Item {
filterLabel: qsTr("Image files")
filters: Images.validImageExtensions
onAccepted: path => {
if (CUtils.copyFile(`file://${path}`, `${Paths.home}/.face`))
if (CUtils.copyFile(`file://${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)}`]);