jamesmcm / vopono

Run applications through VPN tunnels with temporary network namespaces
GNU General Public License v3.0
888 stars 46 forks source link

Unable to run GUI programs in namespace due to unavailable display #215

Closed dpantel closed 1 year ago

dpantel commented 1 year ago

I am attempting to run a browser via vopono. Both chromium and firefox fail with similar messages.

$ vopono -v exec --custom ./config.ovpn --protocol openvpn chromium

INFO  vopono::exec > Application chromium launched in network namespace vopono_c_sYuaqP5hQq2 with pid 54637
[54639:54639:0406/184144.553208:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
[54639:54639:0406/184144.553224:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.

$ vopono -v exec --custom ./config.ovpn --protocol openvpn firefox

INFO  vopono::exec > Application firefox launched in network namespace vopono_c_sYuaqP5hQq2 with pid 55031
Error: cannot open display: :0

vopono 0.10.5 Mint 21.1 (Ubuntu 22.04)

jamesmcm commented 1 year ago

Are you using X11 normally?

dpantel commented 1 year ago

Yes

dpantel commented 1 year ago

Rebooted the system and vopono started just up; must have been a fluke