VirtualBox : mouse integration and messagebox warning

Hi SUSE folks ! here are some changes in our VirtualBox package which will be present in 11.2

Mouse integration

Maybe you already notice properly working :) mouse pointer integration (you don't need to use CTRL key in started X to free captured mouse pointer) when you start Milestone8 LiveCD in VirtualBox, in this case, thanks belongs to Tejas Guruswamy, he points me to missing hal policy file for vbox mouse.

Messagebox warning

If you installed VirtualBox in openSUSE 11.1 first time and you try to start virtualbox (using ALT-F2 and type virtualbox) vbox didn't start and nothing happens ... wtf? It's simple : you have to be a member of vboxusers group, only this group is allowed to start virtualbox binary (and root of course):

ls -la /usr/lib/virtualbox/VirtualBox
-rwsr-x--- 1 root vboxusers 23096 2009-09-30 00:02 /usr/lib/virtualbox/VirtualBox
I got many complains from users: "Why virtualbox just silently failed in this case?", so I decide to fix this issue and I add simple messagebox which warn you if you are not member of vboxusers group and if you try to start virtualbox:

As we use wrapper script /usr/bin/VirtualBox which starts real vbox binary from /usr/lib/virtualbox/VirtualBox, I put check to this wrapper :

/usr/bin/id -nG | grep -v -e "root" -e "vboxusers" >/dev/null && /usr/lib/virtualbox/VBoxPermissionMessage && exit
So if user is not in vboxusers group or is not root, VBoxPermissionMessage is started. Because of VirtualBox GUI dependency on qt, I wrote this simple messagebox also in qt.