Method: ActiveWindowX::Window#command
- Defined in:
- lib/active_window_x/window.rb
#command ⇒ Object
62 63 64 65 66 67 68 69 70 |
# File 'lib/active_window_x/window.rb', line 62 def command id = pid return nil if id.nil? path = "/proc/#{id}/cmdline" return nil unless File.readable_real? path File.read path end |