oversteer icon indicating copy to clipboard operation
oversteer copied to clipboard

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

Open berarma opened this issue 1 year ago • 3 comments

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.

berarma avatar Jul 11 '24 18:07 berarma

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.

jo5huajohn avatar Jul 12 '24 22:07 jo5huajohn

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.

berarma avatar Jul 13 '24 00:07 berarma

I've added instructions for installing permission files for Flatpak users into the README. Is something else needed?

berarma avatar Feb 05 '25 12:02 berarma