igo95862 / bubblejail

Bubblewrap based sandboxing for desktop applications
242 stars 17 forks source link

Allow setting env variables in config app #124

Open qrhfz opened 2 weeks ago

qrhfz commented 2 weeks ago

Description

i was having issue similar to #54 when jailing android studio. the solution is to set DISPLAY env var. it would be great if we can set it in the config app and then the env vars will added to .desktop file generated. so i don't need to open terminal just to open android studio.

rusty-snake commented 2 weeks ago

94

igo95862 commented 2 weeks ago

Hello @qrhfz

Isn't DISPLAY an X11 variable? (for example, DISPLAY=:0) The [x11] service should already pass it to the sandbox.

qrhfz commented 2 weeks ago

nvm, this is actually x11 shenanigan. it also happens on flatpak apps https://github.com/flatpak/flatpak/issues/938

igo95862 commented 2 weeks ago

So your /tmp/.X11 folder got deleted somehow?

igo95862 commented 2 weeks ago

Also would be nice to have the error log you get when trying to run bubblejail with android studio.