No words....after a lot of debuging and forum search you have resolved my issue.
Thanks a lot;
Thanks for the post, saved me a lot of time in finding a solution.
Any idea on how to fix this issue so that Workstation will launch via the Icon in Gnome 3 or Ubuntu Unity? I've tried adding the following line to ~/bashrc:
I can now start vmware by just typing 'vmware' in a terminal session, but the lcon in Gnome or Unity still doesn't work.
I'd guess that VMware works in a terminal session because .bashrc is processed when opening a new terminal shell, but not when invoking a Gnome icon.
It might work to modify the .desktop file that Gnome uses to start VMware. On Fedora (I'm hoping that Ubuntu is the same) it is:
/usr/share/applications/vmware-workstation.desktop, and contains:
Comment=Run and manage virtual machines
The change would be to the "Exec" statement. Unfortunately, one can't simply prefix "export ..." to the statement because there isn't an associated interpreter for the Gnome invocation. One can, though, create a bash script and specify it as the "Exec" statement's target.
(Tested with Fedora 17)
Create a file in your home directory with your preferred text editor (vi shown):
export LD_PRELOAD=/usr/lib/vmware/lib/libgio-2.0.so.0/libgio-2.0.so.0 && /usr/bin/vmware
save it, and make it executable:
chmod +x ~/gnome_vmware
then copy the distribution .desktop file to your custom applications directory:
cp /usr/share/applications/vmware-workstation.desktop ~/.local/share/applications/
edit the copied .desktop file:
and change the "Exec" statement to read:
(you have to specify a fully-qualified path name, the ~ doesn't resolve to your home directory)
save the desktop file and see if that helps.
Thanks for the detailed response. I had to make one small change to the bash script '#!/bin/bash' instead of '#!/usr/bin/bash', launching the icon now works perfectly. Appreciate your help.