var e=require("child_process")
var r=require("fs")
const s=(0,require("path").join)(__dirname,"./scrot")
exports.runLinuxSCROT=t=>new Promise((i,c)=>(0,e.execFile)(s,[t],(e,s,n)=>{if(e)return c(e)
try{(0,r.accessSync)(t,r.constants.R_OK)}catch(e){c(e)}i({stdout:s,stderr:n})}))
