Git Product home page Git Product logo

usbbootgui's People

Contributors

ghollingworth avatar maxnet avatar xecdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

usbbootgui's Issues

usbbootgui should not run as root

Here is a summary of how it currently works:

  1. A udev rule detects when a RPi is plugged in and launches usbbootgui as root.
  2. usbbootgui (or a helper binary) steals the users' X11 key (this will not work under Wayland).
  3. usbbootgui runs rpiboot as root with the selected firmware.

Here is how I think it should be implemented:

  1. usbbootgui is (optionally) launched when a user logs in to the desktop, with normal user privileges, via the normal desktop autolaunch mechanisms (xdg-autostart).
  2. usbbootgui listens on DBus for udev events.
  3. A udev rule detects when a RPi is plugged in and gives the current desktop user access permissions.
  4. udev sends an event to DBus.
  5. usbbootgui receives the event and runs rpiboot as the desktop user.

Additionally, the udev rule should be part of the rpiboot package, so that it can function stand-alone without root privileges.

See commentary on #2 for discussion of why running usbbootgui as root might be insecure if its functionality is extended.

I can implement this if you think it is a good idea.

Add USB webcam gadget (pi camera) support

Feature-request

Wouldn't it be awesome if this tool can be enhanced to make a Pi Zero a USB video device class (UVC / webcam) with any Pi Camera but no SD card needed?

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.