console-launcher 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)
|