summarylogtreecommitdiffstats
path: root/vmware-environment.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vmware-environment.sh')
-rw-r--r--vmware-environment.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/vmware-environment.sh b/vmware-environment.sh
index a6f550a61a10..c1d07c3aab88 100644
--- a/vmware-environment.sh
+++ b/vmware-environment.sh
@@ -1,9 +1,10 @@
# Uncomment the line below if you have a problem of incompatible libraries
#export VMWARE_USE_SHIPPED_LIBS=yes
-# Uncomment and fill the line below to change GTK theme
-#export GTK_THEME=""
-
-
# 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
+ export GTK_THEME=$(gtk-query-settings gtk-theme-name | cut -d '"' -f2)
+fi