summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-23 02:05:32 +0100
committerhut <hut@lavabit.com>2010-01-23 02:05:32 +0100
commit8e1de9174e18bf804bde3186a3a893698fcf7f78 (patch)
treec2d7de58ab85a568f0957c2187f8efd73e7fc654
parentccc950aadf21f864d07edb79fd54f6c82134f5eb (diff)
downloadranger-8e1de9174e18bf804bde3186a3a893698fcf7f78.tar.gz
apps: bugfixes
-rw-r--r--ranger/defaults/apps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 935b3578..49233ce3 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -144,7 +144,7 @@ class CustomApplications(Applications):
 	
 	@depends_on('zsnes')
 	def app_zsnes(self, c):
-		return tup("zsnes", c.file)
+		return tup("zsnes", c.file.path)
 	
 	@depends_on('evince')
 	def app_evince(self, c):
@@ -152,7 +152,7 @@ class CustomApplications(Applications):
 	
 	@depends_on('wine')
 	def app_wine(self, c):
-		return tup("wine", c.file)
+		return tup("wine", c.file.path)
 
 	@depends_on('totem')
 	def app_totem(self, c):
e='author Kartik Agaram <vc@akkartik.com> 2020-10-14 13:42:03 -0700 committer Kartik Agaram <vc@akkartik.com> 2020-10-14 13:42:03 -0700 7032' href='/akkartik/mu/commit/apps/factorial3.subx?h=hlt&id=480fd9958abbd9b3b8443190ece755504c
//: Primitive to convert any type to text (array of characters).
//: Later layers will allow us to override this to do something smarter for
//: specific types.

:(before "End Primitive Recipe Declarations")
TO_TEXT,
:(before "End Primitive Recipe Numbers")
put(Recipe_ordinal, "to-text", TO_TEXT);
:(before "End Primitive Recipe Checks")
case TO_TEXT: {
  if (SIZE(inst.ingredients) != 1) {
    raise << maybe(get(Recipe, r).name) << "'to-text' requires a single ingredient, but got '" << to_original_string(inst) << "'\n" << end();
    break;
  }
  // can handle any type
  break;
}
:(before "End Primitive Recipe Implementations")
case TO_TEXT: {
  products.resize(1);
  products.at(0).push_back(/*alloc id*/0);
  products.at(0).push_back(new_mu_text(inspect(current_instruction().ingredients.at(0), ingredients.at(0))));
  break;
}
='oid'>480fd995 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80