Add support for spectacle screenshots on KDE

This commit is contained in:
Kishi85 committed 2026-05-11 12:33:36 +02:00
1 parent eb8ad65262
commit 2c5bf9543f
1 file changed
+6
+6
View File
@@ -120,6 +120,12 @@ namespace screenshot {
return true;
}
}
if (std::system("which spectacle > /dev/null 2>&1") == 0) {
std::string cmd = "spectacle -f -b -n -o " + target;
if (std::system(cmd.c_str()) == 0) {
return true;
}
}
std::string cmd = "gnome-screenshot -f " + target;
return std::system(cmd.c_str()) == 0;
}