mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
niri: make xdg pictures dir for screenshot, in case it doesnt exist
fixes #1577
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user