Giter Club home page Giter Club logo

Comments (3)

indiv0 avatar indiv0 commented on August 20, 2024

On Linux, perhaps xdg-open could be used?

from conrod.

abonander avatar abonander commented on August 20, 2024

+1 to xdg-open [URL] on Linux. From what I read, it's either not available or doesn't work for this in Red Hat, but definitely does in Ubuntu-family distros. Works on my Mint. Also appears to be available on Arch. Not sure about Debian.

http://stackoverflow.com/a/5116553/1299804

For Windows, start [URL] should work, according to my searches. Will have to test tomorrow on my Windows machine, as I've shut it down for the night.

http://social.msdn.microsoft.com/Forums/ie/en-US/5bf91e62-7be9-4f1d-9bac-5b2a4dd8ced7/starting-the-default-browser-from-commandline?forum=iewebdevelopment

For Mac, it appears to be open [URL]. Don't have a Mac to test this on.

http://osxdaily.com/2011/07/18/open-url-default-web-browser-command-line/

These are all shell commands, of course. xdg-open appears to stay alive in the terminal after starting the browser, but ending it won't exit the new browser window as far as I can tell. Hopefully the others behave similarly so we don't have to keep the browser as a child process.

from conrod.

bvssvni avatar bvssvni commented on August 20, 2024

This should go into another library, because Conrod should be kept back-end agnostic.

from conrod.

Related Issues (20)

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.