@alan_g said in How to launch GUI apps from CLI?:
@nikalon you have to "trick" Unity8 into allowing the application to connect. I have not tried it recently, but something like this... https://lists.ubuntu.com/archives/mir-devel/2015-September/001267.html
Yes! That works, thank you! For anyone who wants the answer you have to append the paremeter --desktop_file_hint=unity8 or -- --desktop_file_hint=unity8 to a regular binary you want to open. This is the syntax:
./application -- --desktop_file_hint=unity8
Unfortunately the game crashes because of some OpenGL problem that I don't know how to solve yet:
library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found
----- Initializing OpenGL -----
Initializing OpenGL subsystem
Using 8 color bits, 24 depth, 8 stencil display
shutting down: Unable to initialize OpenGL (glAccum)
idRenderSystem::Shutdown()
Shutting down OpenGL subsystem
Sys_Error: Unable to initialize OpenGL (glAccum)
shutdown terminal support
But that's an unrelated question that I should ask elsewhere.