Giter Site home page Giter Site logo

Mac not working about ocss HOT 3 CLOSED

rage311 avatar rage311 commented on June 21, 2024
Mac not working

from ocss.

Comments (3)

rage311 avatar rage311 commented on June 21, 2024 1

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.

rage311 avatar rage311 commented on June 21, 2024 1

Sounds to me like you're probably using a fork that has the issue you describe.

from ocss.

dragonito avatar dragonito commented on June 21, 2024

Thx for support, now i use the "right" version :)

from ocss.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.