Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use flatpak-spawn to install udev rules from Flatpak package #215

Open
berarma opened this issue Jul 11, 2024 · 2 comments
Open

Try to use flatpak-spawn to install udev rules from Flatpak package #215

berarma opened this issue Jul 11, 2024 · 2 comments

Comments

@berarma
Copy link
Owner

berarma commented Jul 11, 2024

Odin comment in Matrix:

con el comando flatpak-spawn puedes ejecutar comandos de fuera del sandbox. A lo mejor es viable detectar en oversteer que se está ejecutando en flatpak e invocar el comando flatpak-spawn para usar pkexec e instalar las reglas udev. Se que hay aplicaciones que usan flatpak-spawn para acciones similares
Lo digo para evitar lo de que el usuario tenga que instalar las reglas udev de forma manual
Por cierto para ejecutar comandos en el host Al anterior comando hay que añadirle la opción --host

Run the command unsandboxed on the host. This requires access to the org.freedesktop.Flatpak D-Bus interface.

@jo5huajohn
Copy link
Contributor

While this is possible, I'm not sure if its a good thing to poke a huge hole in the sandbox to install udev rules. Applications like OpenRGB and Steam currently ask users to install the udev rules manually, and I don't see any application on flathub that installs udev rules from within the flatpak (although I could be wrong, I couldn't find any that did.) I could add a note in the flatpak README and the app description informing users to install the udev rules.

@berarma
Copy link
Owner Author

berarma commented Jul 13, 2024

While this is possible, I'm not sure if its a good thing to poke a huge hole in the sandbox to install udev rules. Applications like OpenRGB and Steam currently ask users to install the udev rules manually, and I don't see any application on flathub that installs udev rules from within the flatpak (although I could be wrong, I couldn't find any that did.) I could add a note in the flatpak README and the app description informing users to install the udev rules.

That's good to know. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants