mirror of
https://github.com/LizardByte/tray.git
synced 2026-12-06 15:12:48 +09:00
Add support for spectacle screenshots on KDE
This commit is contained in:
1 parent
eb8ad65262
commit
2c5bf9543f
1 file changed
+6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user