summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Barnett <davidbarnett2@gmail.com>2010-05-19 23:30:40 -0400
committerDavid Barnett <davidbarnett2@gmail.com>2010-05-19 23:30:40 -0400
commit0dc5726741078aae0a41ef158ef5f5cef4b10a14 (patch)
tree7c1eb79c836149ad5e8f6adc4f22945db0157ded
parentd012468d69a53fe582b3a45f18a6aedb304defb3 (diff)
downloadranger-0dc5726741078aae0a41ef158ef5f5cef4b10a14.tar.gz
Add file-roller as a default app for container types
-rw-r--r--ranger/defaults/apps.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 44e209a1..762bdc6e 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -77,7 +77,7 @@ class CustomApplications(Applications):
 				return self.either(c, 'edit_or_run')
 
 		if f.container:
-			return self.either(c, 'aunpack')
+			return self.either(c, 'aunpack', 'file_roller')
 
 		if f.video or f.audio:
 			if f.video:
@@ -164,6 +164,11 @@ class CustomApplications(Applications):
 			return tup('aunpack', '-l', c.file.path)
 		return tup('aunpack', c.file.path)
 
+	@depends_on('file-roller')
+	def app_file_roller(self, c):
+		c.flags += 'd'
+		return tup('file-roller', c.file.path)
+
 	@depends_on('make')
 	def app_make(self, c):
 		if c.mode is 0:
147' href='#n147'>147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258