Giter Site home page Giter Site logo

Is_mac does not work about ocss HOT 2 CLOSED

dragonito avatar dragonito commented on July 19, 2024
Is_mac does not work

from ocss.

Comments (2)

rage311 avatar rage311 commented on July 19, 2024 1

Is there a specific issue you're having?

Can you try running the script in a terminal to see if you get any useful debugging output for said issue?

Line 87:
if ! (scrot -s "$1" || screencapture -s "$1"); then #takes a screenshot with selection
uses the two pipes which is an "or". The call to scrot will fail if it doesn't exist on your system, and at that point it will run screencapture instead. I've tested this on Linux and FreeBSD both as is and with reversing the order of the commands to ensure the fallback command execution works, which it does on both of those OSes.

I need more details in order to help you resolve whatever issue you're having. I know your previously-filed issue included a snippet using gnome-screenshot, which must have been your addition or part of one of the forks of my project, so please ensure you're using my ocss.sh script as it exists in the github repo, or it's pointless for me to try to help resolve it.

from ocss.

dragonito avatar dragonito commented on July 19, 2024

Perhaps its not the problem of the function, in line 87 i tries to use scrot wich is not available on mac

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.