GithubHelp home page GithubHelp logo

Comments (7)

shakna-israel avatar shakna-israel commented on April 28, 2024

I like the start.cmd idea.

As to opening in the browser:

import webbrowser # From the standard library
tab = 2 # Use a new tab if the default browser is open
url = "http://127.0.0.1:43110" # Set a variable to open
webbrowser.open(url,tab=tab) # Open the web browser!

from zeronet.

nathantym avatar nathantym commented on April 28, 2024

This is the command for OSX.

osascript -e "open location \"http://127.0.0.1:43110\""

from zeronet.

volker48 avatar volker48 commented on April 28, 2024

Just put in a PR that should take care of this.

from zeronet.

nathantym avatar nathantym commented on April 28, 2024

@volker48

Just a suggestion and it can always be added later, but some people might want it opened in a specific browser, as well as some people saying this opens a browser other than the default. Maybe we can have this as an option or take in an arg (browser name) that would open it.

Here's how a specified browser can be opened:
https://docs.python.org/2/library/webbrowser.html#webbrowser.get

from zeronet.

volker48 avatar volker48 commented on April 28, 2024

@ymski I updated the pull request. You can now specify the browser when running start.py. Example, python start.py firefox will launch firefox instead of the default browser. If you don't specify it still uses the default browser.

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on April 28, 2024

Thanks, merged!

from zeronet.

chenshaoju avatar chenshaoju commented on April 28, 2024
--dont-open-browser

This parameter has no long working in current ZeroNet Bundle (Windows)

Current working parameter is:

--open_browser ""

from zeronet.

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.