summary refs log tree commit diff stats
path: root/data/apps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/apps.rb')
-rw-r--r--data/apps.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/apps.rb b/data/apps.rb
index 6ba7f44b..dc65d1a7 100644
--- a/data/apps.rb
+++ b/data/apps.rb
@@ -23,9 +23,9 @@ module Application
 	def feh(rc)
 		check rc
 		case rc.mode
-		when 4; "feh --bg-scale #{~rc.first}"
-		when 5; "feh --bg-tile #{~rc.first}"
-		when 6; "feh --bg-center #{~rc.first}"
+		when 4; "feh --bg-scale #{rc.one}"
+		when 5; "feh --bg-tile #{rc.one}"
+		when 6; "feh --bg-center #{rc.one}"
 		when 2; "gimp #{~rc}"
 		when 1; "feh -F #{~rc}"
 		else "feh #{~rc}"
@@ -35,7 +35,7 @@ module Application
 	def interpreted_language(rc)
 		check rc
 		case rc.mode
-		when 1; "./#{~rc.first}"
+		when 1; rc.first.executable? ? "#{rc.one}" : nil
 		when 0; vi(rc)
 		else nil end
 	end