summarylogtreecommitdiffstats
path: root/vmware-environment.sh
blob: 2a9d7109c4064464bb22efc13b84776e701fb985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Uncomment the line below if you have a problem of incompatible libraries
#export VMWARE_USE_SHIPPED_LIBS=yes

# Need the next line to avoid a problem with incompatible libraries
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/librsvg-2.so.2:$LD_LIBRARY_PATH

# Avoid an issue with some keyboard layouts using iBus
export GTK_IM_MODULE_FILE=/dev/null

# Workaround to use the GTK theme
if [ -z "$GTK_THEME" ]; then
	theme=$(gtk-query-settings gtk-theme-name | cut -d '"' -f2)
	# Hack to know if the theme is compatible with GTK 3.14 (used by VMware)
	if [ \( -d ~/.themes/"$theme" -a -d ~/.themes/"$theme"/gtk-3.20 \) -o \( -d /usr/share/themes/"$theme" -a -d /usr/share/themes/"$theme"/gtk-3.20 \) ]; then
		export GTK_THEME="$theme"
	fi
fi