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.
Files changed (2) hide show
  1. data/bin/console-launcher +10 -1
  2. metadata +1 -1
@@ -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
- (pid = fork) ? Process.detach(pid) : exec(command)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console-launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: