Skip to content

Commit b470c8f

Browse files
committed
fix invocation for maim 4.x and 5.x
What is backwards compatibility
1 parent e9cf618 commit b470c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TakeScreenshot(path, cmdName string) (string, error) {
3030
}
3131
cmd = exec.Command(args[0], args[1:]...)
3232
} else if BinExists("maim") && BinExists("slop") {
33-
cmd = exec.Command("maim", "-ns", "-t0", "-b2", "-c0.5,0.4,0.9,0.75", path)
33+
cmd = exec.Command("maim", "-n", "-s", "-t", "0", "-c", "0.5,0.4,0.9,0.75", path)
3434
} else if BinExists("scrot") {
3535
cmd = exec.Command("scrot", "-s", path)
3636
} else if BinExists("boxcutter") {

0 commit comments

Comments
 (0)