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

[NOT AN ISSUE] - DistroBox - DaVinci Helper doesn't launch with sudo in distrobox container #16

Closed
Zeglius opened this issue Nov 5, 2024 · 8 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@Zeglius
Copy link

Zeglius commented Nov 5, 2024

Distrobox container (fedora 41 image).
By running davinci-helper in terminal, shows needs to be run as root.
image

Running with sudo davinci-helper, doesnt open the app:

📦[zeglius@distrobox-dKTcWwebJz ~]$ LC_all=C sudo davinci-helper 

(davinci-helper:113594): Gtk-WARNING **: 00:09:08.164: Unable to acquire session bus: Falló al ejecutar el proceso hijo «dbus-launch» (No existe el fichero o el directorio)
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
Couldn't open libGLESv2.so.2: libGLESv2.so.2: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Abortado

Running with sudo -E davinci-helper, it does opens the app, but still show the same error message as running without sudo:
image

@H3rz3n
Copy link
Owner

H3rz3n commented Nov 6, 2024

The issue is happening because DaVinci Helper uses Polkit to get root permission. I never tried Distrobox and I don't know if it supports the use of Polkit to get authentication. The idea behind DaVinci Helper is to run DaVinci Resolve natively on Fedora Linux, without using any type of container or intermediation.

@H3rz3n H3rz3n self-assigned this Nov 6, 2024
@H3rz3n H3rz3n added the wontfix This will not be worked on label Nov 6, 2024
@H3rz3n H3rz3n changed the title davinci-helper doesnt launch with sudo in distrobox container [ NOT ISSUE ]davinci-helper doesnt launch with sudo in distrobox container Nov 6, 2024
@H3rz3n H3rz3n changed the title [ NOT ISSUE ]davinci-helper doesnt launch with sudo in distrobox container [ NOT ISSUE ] DaVinci Helper doesn't launch with sudo in distrobox container Nov 6, 2024
@H3rz3n H3rz3n changed the title [ NOT ISSUE ] DaVinci Helper doesn't launch with sudo in distrobox container [ NOT AN ISSUE ] DaVinci Helper doesn't launch with sudo in distrobox container Nov 6, 2024
@H3rz3n H3rz3n closed this as completed Nov 6, 2024
@H3rz3n H3rz3n changed the title [ NOT AN ISSUE ] DaVinci Helper doesn't launch with sudo in distrobox container [NOT AN ISSUE] DaVinci Helper doesn't launch with sudo in distrobox container Nov 6, 2024
@H3rz3n H3rz3n changed the title [NOT AN ISSUE] DaVinci Helper doesn't launch with sudo in distrobox container [NOT AN ISSUE] DistroBox - DaVinci Helper doesn't launch with sudo in distrobox container Nov 6, 2024
@H3rz3n H3rz3n changed the title [NOT AN ISSUE] DistroBox - DaVinci Helper doesn't launch with sudo in distrobox container [NOT AN ISSUE] - DistroBox - DaVinci Helper doesn't launch with sudo in distrobox container Nov 6, 2024
@Malix-Labs
Copy link

@H3rz3n could you close this issue as "not planned" instead of "completed" please? :)

@H3rz3n H3rz3n closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2024
@Malix-Labs
Copy link

Malix-Labs commented Nov 6, 2024

The idea behind DaVinci Helper is to run DaVinci Resolve natively on Fedora Linux, without using any type of container or intermediation.

Would you also consider adding support for atomic systems (such as Fedora Atomic) ?

Those systems rely mostly on Flatpak / Distroboxes for GUIs

@H3rz3n
Copy link
Owner

H3rz3n commented Nov 6, 2024

The idea behind DaVinci Helper is to run DaVinci Resolve natively on Fedora Linux, without using any type of container or intermediation.

Would you also consider adding support for atomic systems (such as Fedora Atomic) ?

Those systems rely mostly on Flatpak / Distroboxes for GUIs

Maybe in the future, now the priority is to make a fully functional porting for Debian-based OS like Linux Mint, Ubuntu, ecc... .

I tried to make a Flatpack version of DaVinci Helper but I had some troubles with Polkit. Making a version for Distrobox would be probably easier because replacing polkit commands with sudo should be enough to make it compatible. If you have some spare time you can try yourself to replace those commands with sudo. (^_^)

@Malix-Labs
Copy link

I tried to make a Flatpack version of DaVinci Helper but I had some troubles with Polkit

Also see ublue-os/config#339 (comment) :)

@gmankab
Copy link

gmankab commented Nov 13, 2024

I tried to make a Flatpack version of DaVinci Helper but I had some troubles with Polkit.

i think i can help with troubles solving

@H3rz3n, can you share flatpak manifest you wrote?

@H3rz3n
Copy link
Owner

H3rz3n commented Nov 14, 2024

I tried to make a Flatpack version of DaVinci Helper but I had some troubles with Polkit.

i think i can help with troubles solving

@H3rz3n, can you share flatpak manifest you wrote?

I'm sorry but I don't have it anymore, I tried to make a flatpak version when I was trying to compile the first builds of the version 1. Thank you for your support ! (^_^)

@gmankab
Copy link

gmankab commented Nov 14, 2024

ok maybe i will try to write manifest from scratch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants