Posts Tagged ‘vmware gtk-warning’

VMware Workstation Pro 12 on Fedora 23

While the installation process will succeed without any error, you aren’t able to start VMware Workstation Pro neither VMware Workstation Player.
When trying to launch either application through the command line, you obtain the following errors:

(vmware-modconfig:7066): Gtk-WARNING **: Unable to locate theme engine in module_path: “adwaita”,

(vmware-modconfig:7066): Gtk-WARNING **: Unable to locate theme engine in module_path: “adwaita”,
/usr/share/themes/Adwaita/gtk-2.0/gtkrc:1163: error: unexpected identifier `direction’, expected character `}’
Gtk-Message: Failed to load module “pk-gtk-module”: libpk-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module “canberra-gtk-module”: libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
/usr/share/themes/Adwaita/gtk-2.0/gtkrc:1163: error: unexpected identifier `direction’, expected character `}’

(vmware-tray:7098): Gtk-WARNING **: Unable to locate theme engine in module_path: “adwaita”,

(vmware-tray:7098): Gtk-WARNING **: Unable to locate theme engine in module_path: “adwaita”,
/usr/share/themes/Adwaita/gtk-2.0/gtkrc:1163: error: unexpected identifier `direction’, expected character `}’
Gtk-Message: Failed to load module “pk-gtk-module”: libpk-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module “canberra-gtk-module”: libcanberra-gtk-module.so: cannot open shared object file: No such file or directory

Fixing this is easy, just use the following one-line commands (as root):

  1. Removing the problematic libraries bundled with VMware Workstation Pro 12

    for lib2rm in libgio libglib libgmodule libgobject libgthread; do rm -f /usr/lib/vmware/lib/${lib2rm}-2.0.so.0/${lib2rm}-2.0.so.0; ln -s /usr/lib64/${lib2rm}-2.0.so.0.4600.2 /usr/lib/vmware/lib/${lib2rm}-2.0.so.0/${lib2rm}-2.0.so.0; done

  2. Creating a script to launch vmware & vmplayer properly:

    for vmapp in vmplayer vmware; do mv /usr/bin/$vmapp /usr/bin/$vmapp.bin; echo -e \#\!\/bin\/bash > /usr/bin/$vmapp; echo -e “export VMWARE_USE_SHIPPED_LIBS=force\n/usr/bin/${vmapp}.bin \$*” >> /usr/bin/$vmapp; chmod +x /usr/bin/$vmapp; done

You should now be able to launch VMware Workstation Pro (or the Workstation Player) in a normal manner.

That’s it for VMware Workstation Pro 12, VMware Workstation Pro Player & Fedora 23.