summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-12 19:47:10 +0200
committerhut <hut@lavabit.com>2010-10-12 19:47:10 +0200
commitf331dffe14bf38e3f6d5bc21bc85c1c230432bb4 (patch)
treed273dd38cffa5d22f44ad4ff8f3df088af84959c /ranger
parentf5596d8862ce4d89157eceb5ff030d56e1bc9664 (diff)
downloadranger-f331dffe14bf38e3f6d5bc21bc85c1c230432bb4.tar.gz
core.fm: chmod u+x when using --copy-config=scope
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/fm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 37f79554..cf3f4b20 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -21,6 +21,7 @@ from time import time
 from collections import deque
 import mimetypes
 import os
+import stat
 import sys
 
 import ranger
@@ -146,6 +147,8 @@ class FM(Actions, SignalDispatcher):
 			copy('defaults/options.py', 'options.py')
 		if which == 'scope' or which == 'all':
 			copy('data/scope.sh', 'scope.sh')
+			os.chmod(self.confpath('scope.sh'),
+				os.stat(self.confpath('scope.sh')).st_mode | stat.S_IXUSR)
 		if which not in \
 				('all', 'apps', 'scope', 'commands', 'keys', 'options'):
 			sys.stderr.write("Unknown config file `%s'\n" % which)
le?id=9177dde424cdc50897c47826a8153342d724beb0'>^
2dec7483 ^
38db6ab5 ^




48b19713 ^
4a216fe8 ^
48b19713 ^
4a216fe8 ^
48b19713 ^
4a216fe8 ^





2dec7483 ^
fe9ac5f7 ^
ab203acf ^


b512b00d ^
fe9ac5f7 ^
053e0be9 ^
6e988941 ^
2dec7483 ^
3aa8f1e0 ^

fe9ac5f7 ^
53bc4753 ^
38db6ab5 ^

4a216fe8 ^

fe9ac5f7 ^




d4409bae ^
c9337674 ^
d4409bae ^
c9337674 ^
d4409bae ^










c9337674 ^
bf761bcb ^

ae7cc86b ^
e58016bf ^

48b19713 ^
053e0be9 ^




9053a909 ^

6e988941 ^



af92dd17 ^
78a977b7 ^
1dcb9cf6 ^
ae7cc86b ^
f3558509 ^
f4d895c0 ^
e58016bf ^
ae7cc86b ^
e58016bf ^

f4d895c0 ^
1dcb9cf6 ^
dacba5fd ^
1dcb9cf6 ^
2dec7483 ^
3aa8f1e0 ^


dacba5fd ^
9ee1dd6e ^
9ee1dd6e ^
fe9ac5f7 ^
b512b00d ^
dacba5fd ^
b512b00d ^

ab203acf ^
fc09f0be ^
38db6ab5 ^
ae7cc86b ^
53bc4753 ^
38db6ab5 ^

ab203acf ^
0e4fe966 ^
364ede89 ^
ae7cc86b ^
53bc4753 ^
4eb57c2b ^
a42f96ee ^


ae7cc86b ^
53bc4753 ^
189e73f7 ^
ab203acf ^
d4409bae ^
df40fcdd ^
ae7cc86b ^
53bc4753 ^
a6166c4d ^
53bc4753 ^
d4409bae ^
53bc4753 ^
fc09f0be ^
ae7cc86b ^
53bc4753 ^
ab203acf ^
1df10adf ^
ab203acf ^

fc09f0be ^
53bc4753 ^
ae7cc86b ^
53bc4753 ^
ab203acf ^
bf761bcb ^
b0547ba9 ^









fad4fb18 ^
4a216fe8 ^
04cbc981 ^
a2d276c7 ^
601ad988 ^
a2d276c7 ^

4a216fe8 ^

3b264751 ^
2173f509 ^
4a216fe8 ^

601ad988 ^





dacba5fd ^


435882f1 ^
6b0b7ccf ^
29441535 ^
4a216fe8 ^
48b19713 ^
fe9ac5f7 ^
f9a184c2 ^
48b19713 ^
53bc4753 ^





48b19713 ^
053e0be9 ^
6e988941 ^
f4d895c0 ^

48b19713 ^
fe9ac5f7 ^
b512b00d ^
b0547ba9 ^

d9ab24c2 ^
601ad988 ^
d9ab24c2 ^
601ad988 ^
24e6e40f ^
6b0b7ccf ^
24e6e40f ^
4a216fe8 ^
fe9ac5f7 ^
f9a184c2 ^
ab203acf ^
4eb57c2b ^
189e73f7 ^
fe9ac5f7 ^
bf761bcb ^

53bc4753 ^

fe9ac5f7 ^
b512b00d ^
53bc4753 ^

053e0be9 ^
6e988941 ^
53bc4753 ^
b0547ba9 ^

53bc4753 ^
4a216fe8 ^




b8becdc0 ^
4a216fe8 ^
fe9ac5f7 ^
6b0b7ccf ^



e3d9ee2c ^




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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
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
259
260
261
262
263
264
265
266
267
268
269
270