You are not logged in.

#1 2008-09-05 03:01:08

deltaecho
Member
From: Georgia (USA)
Registered: 2008-08-06
Posts: 185

[SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Does anybody know why VirtualBox refuses to use the native Qt widget style?  I was hoping the problem lied with Qt3, but it remains in VirtualBox 2.0 - which uses Qt4.  In case I'm the only one suffering from this bug, I've included a screenshot:

UglyVBox.png

Edit: I might should add, I'm using KDEMod4.

Last edited by deltaecho (2008-09-06 22:01:59)


Dylon

Offline

#2 2008-09-05 22:16:03

deltaecho
Member
From: Georgia (USA)
Registered: 2008-08-06
Posts: 185

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

I haven't figured it out yet, I'm just updating anybody interested on my progress...

I downloaded the .deb version of VBox 2.0, created a PKGBUILD, installed it, and, Voila!  I had a beautiful GUI (check out the scrollbar) smile

PrettyVBox.png

Also, I've found another bug - whenever I install VBox via PKGBUILD, whether I use the generic bin file or the .deb archive, I cannot run VirtualBox as a normal user:

$ VirtualBox
VirtualBox: SUPR3HardenedMain: effective uid is not root (euid=1000 egid=100 uid=1000 gid=100)

However, I can run it with normal privileges when I install it directly from the bin file, kinda strange.


Dylon

Offline

#3 2008-09-06 18:33:58

hash
Member
From: Poland
Registered: 2008-07-31
Posts: 111

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

I've installed virtualbox_bin 2.0 from AUR and also got the same issue with GUI - ugly QT4 style. Maybe you could share your .deb PKGBUILD ? roll

Offline

#4 2008-09-06 18:41:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

@deltaecho there is no bug. is a future smile
just to chmod 4511 to /opt/virtualbox/VirtualBox, VBoxSDL and VBoxHeadless within that directory.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2008-09-06 19:51:55

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

All right, well the problem is the Arch version lets VirtualBox use its own version of Qt4, which it's bundled with.

rm /opt/virtualbox/libVBoxQtGui.so.4
rm /opt/virtualbox/libVBoxQtCore.so.4
ln -s /usr/lib/libQtGui.so.4 /opt/virtualbox/libVBoxQtGui.so.4
ln -s /usr/lib/libQtCore.so.4 /opt/virtualbox/libVBoxQtCore.so.4

Assuming you have the latest qt installed as of the time of this writing, this will work.

However, for those of us using QGtkStyle, as someone mentioned, this is the message we get:

Qt WARNING:

This process is currently running setuid or getgid.
GTK+ does not allow this therefore Qt cannot use the GTK+ integration.
Try launching your app using 'gksudo',
'kdesude' or a similar tool.

See http://www.gtk.org/setuid.html for more information.

I haven't tried this yet...

Last edited by buttons (2008-09-06 19:59:08)


Cthulhu For President!

Offline

#6 2008-09-06 20:27:26

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Uh, yeah.  To use QGtkStyle with VirtualBox, you have to run it as root instead.  I basically symlinked my user's .VirtualBox directory to /root, and used sudo.

Not ideal...but it does work.


Cthulhu For President!

Offline

#7 2008-09-06 20:31:35

hash
Member
From: Poland
Registered: 2008-07-31
Posts: 111

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

buttons wrote:

All right, well the problem is the Arch version lets VirtualBox use its own version of Qt4, which it's bundled with.

rm /opt/virtualbox/libVBoxQtGui.so.4
rm /opt/virtualbox/libVBoxQtCore.so.4
ln -s /usr/lib/libQtGui.so.4 /opt/virtualbox/libVBoxQtGui.so.4
ln -s /usr/lib/libQtCore.so.4 /opt/virtualbox/libVBoxQtCore.so.4

Assuming you have the latest qt installed as of the time of this writing, this will work.

However, for those of us using QGtkStyle, as someone mentioned, this is the message we get:

Qt WARNING:

This process is currently running setuid or getgid.
GTK+ does not allow this therefore Qt cannot use the GTK+ integration.
Try launching your app using 'gksudo',
'kdesude' or a similar tool.

See http://www.gtk.org/setuid.html for more information.

I haven't tried this yet...

That did the trick! Thanks big_smile

Offline

#8 2008-09-06 21:30:52

fede
Member
Registered: 2007-06-29
Posts: 126

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Thanks a lot!

Offline

#9 2008-09-06 21:47:23

fede
Member
Registered: 2007-06-29
Posts: 126

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Does running Virtualbox with gksudo mean that the guest OS has root permissions? I guess not, because I checked, modified the contents of the drive within the guest OS, and the ownership of the drive file (.vdi) didn't change. But this is a crude test, maybe someone has better info on this?

Offline

#10 2008-09-06 22:00:40

deltaecho
Member
From: Georgia (USA)
Registered: 2008-08-06
Posts: 185

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Awesome then!  I'm marking this one as [SOLVED], but the discussion may continue big_smile

Last edited by deltaecho (2008-09-06 22:02:27)


Dylon

Offline

#11 2008-09-06 22:12:34

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

fede wrote:

Does running Virtualbox with gksudo mean that the guest OS has root permissions? I guess not, because I checked, modified the contents of the drive within the guest OS, and the ownership of the drive file (.vdi) didn't change. But this is a crude test, maybe someone has better info on this?

Since VBox runs with setuid already set, it always runs with root permissions.  If you use gksudo, then it will be run as root, which is different.

See Wikipedia for details...

When a binary executable file has been given the setuid attribute, normal users on the system can execute this file and gain the privileges of the user who owns the file (commonly root) within the created process.

As for file modification, ownership never changes if the contents of the file are modified.  You can verify this by, say, running vim as root and modifying a file in your user's directory.  Ownership will not change.

Last edited by buttons (2008-09-06 22:30:58)


Cthulhu For President!

Offline

#12 2008-09-08 01:33:55

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

buttons wrote:

All right, well the problem is the Arch version lets VirtualBox use its own version of Qt4, which it's bundled with.

rm /opt/virtualbox/libVBoxQtGui.so.4
rm /opt/virtualbox/libVBoxQtCore.so.4
ln -s /usr/lib/libQtGui.so.4 /opt/virtualbox/libVBoxQtGui.so.4
ln -s /usr/lib/libQtCore.so.4 /opt/virtualbox/libVBoxQtCore.so.4

Assuming you have the latest qt installed as of the time of this writing, this will work.

However, for those of us using QGtkStyle, as someone mentioned, this is the message we get:

Qt WARNING:

This process is currently running setuid or getgid.
GTK+ does not allow this therefore Qt cannot use the GTK+ integration.
Try launching your app using 'gksudo',
'kdesude' or a similar tool.

See http://www.gtk.org/setuid.html for more information.

I haven't tried this yet...

Thanks for the help getting this working!

I just wanted to point out to those who encounter the same thing I did...  I am using Kde 4.1.1 and I used the .run file from the VirtualBox website to upgrade from my existing 1.6.6.

I had to follow the directions above but replace the folder "virtualbox" with "VirtualBox-2.0.0" so it looks like this:

rm /opt/VirtualBox-2.0.0/libVBoxQtGui.so.4
rm /opt/VirtualBox-2.0.0/libVBoxQtCore.so.4
ln -s /usr/lib/libQtGui.so.4 /opt/VirtualBox-2.0.0/libVBoxQtCore.so.4
ln -s /usr/lib/libQtGui.so.4 /opt/VirtualBox-2.0.0/libVBoxQtGui.so.4

THEN it worked like a charm!


ARCH x86_64 ZEN

Offline

#13 2008-09-13 12:03:48

fede
Member
Registered: 2007-06-29
Posts: 126

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Thanks for the answers, buttons.

My doubt stemmed from your post above:

Uh, yeah.  To use QGtkStyle with VirtualBox, you have to run it as root instead.  I basically symlinked my user's .VirtualBox directory to /root, and used sudo.

Not ideal...but it does work.

So you're running it as root, aren't you? I ask because I also use qgtkstyle, and I find the idea of giving Virtualbox more privileges than needed uncomfortable since I sometimes use Windows XP witthin it. I'd rather have a relatively ugly interface for this one program.

Offline

#14 2008-09-13 17:02:52

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

fede wrote:

Thanks for the answers, buttons.

My doubt stemmed from your post above:

Uh, yeah.  To use QGtkStyle with VirtualBox, you have to run it as root instead.  I basically symlinked my user's .VirtualBox directory to /root, and used sudo.

Not ideal...but it does work.

So you're running it as root, aren't you? I ask because I also use qgtkstyle, and I find the idea of giving Virtualbox more privileges than needed uncomfortable since I sometimes use Windows XP witthin it. I'd rather have a relatively ugly interface for this one program.

Well, you needn't worry because it already has root privileges.  Which is different from running it as root only in the user involved.

And yes, I'm running it as root now, just for the de-ugly.

I very much doubt running WinXP (or any OS) in any hypervisor is going to put your system at risk, regardless.

Last edited by buttons (2008-09-13 17:03:55)


Cthulhu For President!

Offline

#15 2008-09-13 17:18:02

jdhore
Member
From: NYC
Registered: 2007-08-01
Posts: 156

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Just for the record, VBox 2.0.2 now supports QGtkStyle without mucking with running as root and chmodding and stuff (see the bug # in the official VBox changelog)

Offline

#16 2008-09-13 17:26:01

deltaecho
Member
From: Georgia (USA)
Registered: 2008-08-06
Posts: 185

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

@jdhore, thanks for the update!  I didn't know Sun had released an update, I'm going to install it now smile

+1


Dylon

Offline

#17 2008-09-13 17:46:28

fede
Member
Registered: 2007-06-29
Posts: 126

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

Thanks jdhore!

Offline

#18 2008-09-13 18:41:00

deltaecho
Member
From: Georgia (USA)
Registered: 2008-08-06
Posts: 185

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

While we're on the subject of making Qt apps that include their own Qt libraries use our native widget style, does anybody know how to coerce Google Earth into submission?  I tried replacing its Qt libs with symlinks to my native libraries, as I did with VB, but it still stubbornly draws square widgets.

Edit: Removed "Qt" from "...our native Qt widget style..." in my question above.

Last edited by deltaecho (2008-09-13 18:43:18)


Dylon

Offline

#19 2008-09-13 21:12:46

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

jdhore wrote:

Just for the record, VBox 2.0.2 now supports QGtkStyle without mucking with running as root and chmodding and stuff (see the bug # in the official VBox changelog)

Not only that, but the Arch PKGBUILD in AUR automagically uses native Qt rather than VirtualBox's.  So this thread is officially moot tongue


Cthulhu For President!

Offline

#20 2008-09-13 22:03:18

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

arrgh, why isn't there any gtk frontend avaible!? qt is kinda lame -.-

Offline

#21 2008-09-13 22:29:32

jdhore
Member
From: NYC
Registered: 2007-08-01
Posts: 156

Re: [SOLVED] VirtualBox 2.0 is still ugly, even with Qt4...

arch0r wrote:

arrgh, why isn't there any gtk frontend avaible!? qt is kinda lame -.-

http://www.xente.mundo-r.com/narf/vboxgtk/ <-- I love giving people what they want smile

Offline

Board footer

Powered by FluxBB