lib/vnctools/server.rb in vnctools-0.1.0 vs lib/vnctools/server.rb in vnctools-0.1.1

- old
+ new

@@ -17,10 +17,14 @@ end attr_writer :executable def executable - @executable ||= "tightvncserver" + @executable ||= find_executable + end + + def find_executable + `which tightvncserver vncserver xtightvncserver`.each_line.map(&:strip).first || 'tightvncserver' end end attr_reader :display