1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-14 16:22:46 -04:00

screenshot: respect XDG_PICTURES_DIR

fixes #2383
This commit is contained in:
bbedward
2026-05-11 10:00:21 -04:00
parent b192b5f779
commit 676219bc09
3 changed files with 38 additions and 39 deletions
+6 -5
View File
@@ -64,12 +64,13 @@ func SendNotification(result NotifyResult) {
summary := "Screenshot captured"
body := ""
if result.Clipboard && result.FilePath != "" {
body = fmt.Sprintf("Copied to clipboard\n%s", filepath.Base(result.FilePath))
} else if result.Clipboard {
body = "Copied to clipboard"
} else if result.FilePath != "" {
switch {
case result.FilePath != "" && result.Clipboard:
body = fmt.Sprintf("%s\nCopied to clipboard", filepath.Base(result.FilePath))
case result.FilePath != "":
body = filepath.Base(result.FilePath)
case result.Clipboard:
body = "Copied to clipboard"
}
obj := conn.Object(notifyDest, notifyPath)