parent
5902988a77
commit
0d8771cf4d
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ Item {
|
||||||
filterLabel: qsTr("Image files")
|
filterLabel: qsTr("Image files")
|
||||||
filters: Images.validImageExtensions
|
filters: Images.validImageExtensions
|
||||||
onAccepted: path => {
|
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)}`]);
|
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
|
else
|
||||||
Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "critical", "Unable to change profile picture", `Failed to change profile picture to ${Paths.shortenHome(path)}`]);
|
Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "critical", "Unable to change profile picture", `Failed to change profile picture to ${Paths.shortenHome(path)}`]);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue