console-launcher 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/console-launcher +10 -1
- metadata +1 -1
data/bin/console-launcher
CHANGED
@@ -207,7 +207,16 @@ def launch_viewer(index)
|
|
207
207
|
command = "/Applications/RemoteViewer.app/Contents/MacOS/RemoteViewer --spice-ca-file #{@cert} #{vv.path}"
|
208
208
|
puts command if @options[:print]
|
209
209
|
unless @options[:dryrun]
|
210
|
-
|
210
|
+
pid = Process.fork
|
211
|
+
if pid.nil? then
|
212
|
+
# In child
|
213
|
+
$stdout.reopen(Tempfile.new("RV-stdout"), 'w')
|
214
|
+
$stderr.reopen(Tempfile.new("RV-stderr"), 'w')
|
215
|
+
exec(command)
|
216
|
+
else
|
217
|
+
# In parent
|
218
|
+
Process.detach(pid)
|
219
|
+
end
|
211
220
|
end
|
212
221
|
puts "Reloading Virtual Machines Selection Menu ..."
|
213
222
|
sleep(5)
|