]> git.donarmstrong.com Git - neurodebian.git/blobdiff - etc/xdg/autostart/vboxhost-mount.desktop
Make host-share mount more reliable
[neurodebian.git] / etc / xdg / autostart / vboxhost-mount.desktop
index 161e88c99fb58a86fec79e62d1da41c89cbd6c94..b508c460de424d77bddcd8c62b7756284742914a 100644 (file)
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Name=VirtualBox shared folder
 Comment=Mount the shared folder of the VirtualBox host
-Exec=sudo mount -t vboxsf -o defaults,uid=brain,gid=brain host /mnt/host
+Exec=sh -c 'sudo mount.vboxsf -o uid=$(id -u),gid=$(id -g) host /mnt/host'
 Terminal=false
 Type=Application