summarylogtreecommitdiffstats
path: root/vmware-horizon-usb
diff options
context:
space:
mode:
Diffstat (limited to 'vmware-horizon-usb')
-rw-r--r--vmware-horizon-usb15
1 files changed, 14 insertions, 1 deletions
diff --git a/vmware-horizon-usb b/vmware-horizon-usb
index b634fb57868..2bd0e5a88cb 100644
--- a/vmware-horizon-usb
+++ b/vmware-horizon-usb
@@ -1,4 +1,17 @@
#!/bin/sh
+# this is from /etc/init.d/vmware-USBArbitrator
+# changed to work on uids >= 1000
+for user in `awk -F'[/:]' '{if ($3 == 0 || ($3 >= 1000 && $3 != 65534)) print $1}' /etc/passwd`
+ do
+ aUser=$user
+ aGroup=`id -g $aUser`
+ aUID=`id -u $aUser`
+ if ! [ -f /var/run/vmware/"$aUID" ] ; then
+ mkdir -p /var/run/vmware/"$aUID"
+ chown -R -- "$aUser":"$aGroup" /var/run/vmware/"$aUID"
+ chmod 700 /var/run/vmware/"$aUID"
+ fi
+ done
+
/usr/lib/vmware/view/usb/vmware-usbarbitrator
-/usr/lib/vmware/view/usb/vmware-view-usbd