GithubHelp home page GithubHelp logo

Comments (1)

elesiuta avatar elesiuta commented on August 15, 2024 1

Thank you!

The command picosnitch dash is intended to be more "user friendly" and completely detach itself from the terminal, but I agree showing the errors would be helpful. There is also the currently undocumented command picosnitch start-dash which does not detach itself nor pipe to /dev/null.

Maybe when dash launches, the below print statement could also suggest trying start-dash to see any error messages if dash fails to open.

picosnitch/picosnitch.py

Lines 2326 to 2330 in 34f9f1f

except Exception:
pass
print(f"serving web gui on http://{os.getenv('HOST', 'localhost')}:{os.getenv('PORT', '5100')}")
if sys.executable.startswith("/snap/") or sys.executable.startswith("/nix/"):
subprocess.Popen(["bash", "-c", f'/usr/bin/env python3 -m webbrowser -t http://{os.getenv("HOST", "localhost")}:{os.getenv("PORT", "5100")}'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

It is also probably worth mentioning the DASH_DEBUG environment variable which enables the dash dev tools when true.

The same also goes for picosnitch start and picosnitch start-no-daemon (but this is already the command systemd uses so you'd see the errors in journalctl).

from picosnitch.

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.