dsa
This commit is contained in:
@@ -41,7 +41,7 @@ PanelWindow {
|
|||||||
// get folder url
|
// get folder url
|
||||||
FolderListModel {
|
FolderListModel {
|
||||||
id: imagesModel
|
id: imagesModel
|
||||||
folder: "file://" + Quickshell.workingDirectory + "/Pictures/Wallpapers"
|
folder: "file://" + Quickshell.env("HOME") + "/Pictures/Wallpapers"
|
||||||
nameFilters: ["*.png", "*.jpg", "*.jpeg"]
|
nameFilters: ["*.png", "*.jpg", "*.jpeg"]
|
||||||
showDirs: false
|
showDirs: false
|
||||||
}
|
}
|
||||||
@@ -103,7 +103,7 @@ PanelWindow {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
Process {
|
Process {
|
||||||
id: wallpaperProcess
|
id: wallpaperProcess
|
||||||
command: ["sh", "-c", Quickshell.workingDirectory + "/.config/quickshell/modules/wp/set-wallpaper.sh" + " " + model.filePath + " &"]
|
command: ["sh", "-c", Quickshell.env("HOME") + "/.config/quickshell/modules/wp/set-wallpaper.sh" + " " + model.filePath + " &"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: console.log(`line read: ${this.text}`)
|
onStreamFinished: console.log(`line read: ${this.text}`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user