]> gitweb.fluxo.info Git - vbox.git/commitdiff
Adds DISPLAY env var to exec so we can run X11 apps
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Aug 2015 01:58:04 +0000 (22:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Aug 2015 01:58:04 +0000 (22:58 -0300)
vbox

diff --git a/vbox b/vbox
index 0069bd6dd8dd1cd1f110d181eb51006d12c77548..ae2db784cfb1144772682b96e5de55792955cbc9 100755 (executable)
--- a/vbox
+++ b/vbox
@@ -23,7 +23,7 @@ function vbox_exec {
 
   local command="guestcontrol"
   local options="execute --username vagrant --password vagrant --image $bin"
-        options="$options --verbose --wait-exit --wait-stdout --wait-stderr -- $*"
+        options="$options --verbose --wait-exit --wait-stdout --wait-stderr --environment \"DISPLAY=:0\" -- $*"
 
   vbox_run $command $options
 }