1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

niri: make xdg pictures dir for screenshot, in case it doesnt exist

fixes #1577
This commit is contained in:
bbedward
2026-07-03 21:55:44 -04:00
parent 8465ed4311
commit 46f8457777
+7 -1
View File
@@ -70,7 +70,10 @@ Singleton {
validateProcess.running = true;
}
Component.onCompleted: fetchOutputs()
Component.onCompleted: {
fetchOutputs();
Paths.mkdir(screenshotsDir);
}
Timer {
id: suppressToastTimer
@@ -846,6 +849,7 @@ Singleton {
}
function screenshot() {
Paths.mkdir(screenshotsDir);
pendingScreenshotPath = "";
const timestamp = Date.now();
const path = `${screenshotsDir}/dms-screenshot-${timestamp}.png`;
@@ -862,6 +866,7 @@ Singleton {
}
function screenshotScreen() {
Paths.mkdir(screenshotsDir);
pendingScreenshotPath = "";
const timestamp = Date.now();
const path = `${screenshotsDir}/dms-screenshot-${timestamp}.png`;
@@ -879,6 +884,7 @@ Singleton {
}
function screenshotWindow() {
Paths.mkdir(screenshotsDir);
pendingScreenshotPath = "";
const timestamp = Date.now();
const path = `${screenshotsDir}/dms-screenshot-${timestamp}.png`;