about summary refs log tree commit diff stats
path: root/data
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-20 23:52:58 +0200
committerhut <hut@lavabit.com>2009-07-20 23:52:58 +0200
commite805ddb1fc16736a8735bbda16ee094f4c59e182 (patch)
treeb0fd78927f35220608170612c94c2728d16c7171 /data
parentce16309481e03604199470dea8b5aaef9dd0e282 (diff)
downloadranger-e805ddb1fc16736a8735bbda16ee094f4c59e182.tar.gz
fixed #11 (specify flags at data/types.rb)
Diffstat (limited to 'data')
-rw-r--r--data/apps.rb5
-rw-r--r--data/types.rb2
2 files changed, 1 insertions, 6 deletions
diff --git a/data/apps.rb b/data/apps.rb
index 6a906e9d..089aba40 100644
--- a/data/apps.rb
+++ b/data/apps.rb
@@ -57,11 +57,6 @@ module Application
 		else nil end
 	end
 
-	def mplayer_detached(files)
-		files.base_flags = 'd'
-		mplayer(files)
-	end
-
 	def evince(files)
 		"evince #{files}"
 	end
diff --git a/data/types.rb b/data/types.rb
index 1755c9d3..6efc189c 100644
--- a/data/types.rb
+++ b/data/types.rb
@@ -31,7 +31,7 @@ class Directory::Entry
 		## then look at the mime-type
 		case @mimetype
 		when /^video/
-			use.mplayer_detached
+			use.mplayer "d"
 
 		when /^audio/
 			use.mplayer