summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger.rb b/ranger.rb
index 9e6b4380..42a7f88e 100755
--- a/ranger.rb
+++ b/ranger.rb
@@ -11,7 +11,7 @@ PID = Process.pid
 if ARGV.size > 0
 	case ARGV.first
 	when '-k'
-		exec "killall -9 fm"
+		exec "killall -9 #{File.basename($0)}"
 	end
 	pwd = ARGV.first
 	if pwd =~ /^file:\/\//