lib/fusuma/command_executor.rb in fusuma-0.10.2 vs lib/fusuma/command_executor.rb in fusuma-0.11.0
- old
+ new
@@ -7,10 +7,14 @@
@event_type = vector.class::TYPE
end
attr_reader :finger, :direction, :event_type
def execute
- `#{command_or_shortcut}`
+ pid = fork {
+ Process.daemon(true)
+ exec("#{command_or_shortcut}")
+ }
+ Process.detach(pid)
MultiLogger.info("Execute: #{command_or_shortcut}")
end
private