Comments (3)
Thanks for the feedback. Where did gnome-screenshot
come from...? It's not in my version of the script. For Mac, this script uses screencapture -s
. I'm not saying it works for sure, since I don't have OS X to test on, but it's almost exactly what JonApps original imgur-screenshot script uses, and I can assume that worked.
function take_screenshot() {
echo "Please select area"
is_mac || sleep 0.1 # https://bbs.archlinux.org/viewtopic.php?pid=1246173#p1246173
if ! (scrot -s "$1" &>/dev/null || screencapture -s "$1" &>/dev/null); then #takes a screenshot with selection
echo "Couldn't make selective shot (mouse trapped?). Trying to grab active window instead"
if ! (scrot -u "$1" &>/dev/null || screencapture -oWa "$1" &>/dev/null); then
echo "Error for image '$1'!" >> "$log_file"
echo "Error for image '$1'!"
notify error "Something went wrong :(" "Information has been logged"
exit 1
fi
fi
}
https://github.com/rage311/ocss/blob/master/ocss.sh#L84-L97
from ocss.
Sounds to me like you're probably using a fork that has the issue you describe.
from ocss.
Thx for support, now i use the "right" version :)
from ocss.
Related Issues (2)
- Is_mac does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocss.