hawaii-desktop / greenisland

UNMAINTANED, please go to https://github.com/lirios/wayland
https://liri.io
GNU General Public License v2.0
75 stars 9 forks source link

Gracefully exit when running on VirtualBox #136

Open plfiorini opened 8 years ago

plfiorini commented 8 years ago

VirtualBox doesn't support Wayland compositors, but not all users know that. We should detect when running on VirtualBox and gracefully exit with an explicit error message that will explain the situation.

See https://github.com/hawaii-desktop/hawaii-pkgbuilds/issues/15

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

iBelieve commented 8 years ago

So if VirtualBox doesn't support Wayland, what virtualization technology do you normally use to test Hawaii?

rburchell commented 8 years ago

I find that a strange assertion, given that the Jolla SDK is based around a VirtualBox VM running a Wayland compositor - and that we prototyped the Wayland homescreen in a VirtualBox VM all the way back in 2012, if memory serves.

plfiorini commented 8 years ago

I had it running in 2012 too but I was using fbdev (EGL_PLATFORM=fbdev and eglfs), no KMS.

So yes it can run but it wasn't so fast (usable but with a some patience) and there are better alternatives nowadays like qemu.

Also, to make it work you needed to enable fbdev and, if I recall, a mesa patch for fbdev.

https://www.youtube.com/watch?v=G0oaENN1kCE

What I really meant here is that it won't work as it works on bare metal and vmware.

@iBeliever: qemu, vmware or bare metal (laptop with Intel integrated).

plfiorini commented 8 years ago

VirtualBox support is not what I expect to work out of the box on all distributions. So maybe Green Island should still try to start on VirtualBox, but if it fails it should warn about VirtualBox not being as fully supported as alternatives.