Permalink
Browse files

Merge branch 'x11vnc'

  • Loading branch information...
2 parents 510271e + c811677 commit 8f1bd794406fce6c8d75064e71da0d209d2298d1 @gshakhn committed Apr 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/headless/vnc/vnc.rb
  2. +1 −1 spec/vnc_spec.rb
View
2 lib/headless/vnc/vnc.rb
@@ -23,7 +23,7 @@ def initialize(display, options = {})
def start
unless vnc_running?
- CliUtil.fork_process("#{CliUtil.path_to('x11vnc')} -display :#{@display} -N -nopw -viewonly -shared -forever -listen localhost", @pid_file_path, @log_file_path)
+ CliUtil.fork_process("#{CliUtil.path_to('x11vnc')} -display :#{@display} -N -nopw -viewonly -shared -forever", @pid_file_path, @log_file_path)
at_exit do
exit_status = $!.status if $!.is_a?(SystemExit)
stop
View
2 spec/vnc_spec.rb
@@ -18,7 +18,7 @@
describe "start" do
it "starts x11vnc" do
Headless::CliUtil.stub(:path_to, 'x11vnc').and_return('x11vnc')
- Headless::CliUtil.should_receive(:fork_process).with(/x11vnc -display :99 -N -nopw -viewonly -shared -forever -listen localhost/, "/tmp/.headless_vnc_99.pid", '/dev/null')
+ Headless::CliUtil.should_receive(:fork_process).with(/x11vnc -display :99 -N -nopw -viewonly -shared -forever/, "/tmp/.headless_vnc_99.pid", '/dev/null')
recorder = Headless::Vnc.new(99)
recorder.start

0 comments on commit 8f1bd79

Please sign in to comment.