@@ -93,9 +93,7 @@ public void OpenInFileManager(string path, bool select)
93
93
{
94
94
var dir = Path . GetDirectoryName ( path ) ;
95
95
if ( Directory . Exists ( dir ) )
96
- {
97
96
Process . Start ( _xdgOpenPath , $ "\" { dir } \" ") ;
98
- }
99
97
}
100
98
}
101
99
@@ -133,9 +131,7 @@ private string FindExecutable(string filename)
133
131
{
134
132
var test = Path . Combine ( path , filename ) ;
135
133
if ( File . Exists ( test ) )
136
- {
137
134
return test ;
138
- }
139
135
}
140
136
141
137
return string . Empty ;
@@ -149,33 +145,27 @@ private Terminal FindTerminal()
149
145
{
150
146
var test = Path . Combine ( path , "gnome-terminal" ) ;
151
147
if ( File . Exists ( test ) )
152
- {
153
148
return new Terminal ( test , "--working-directory=\" {0}\" " ) ;
154
- }
155
149
156
150
test = Path . Combine ( path , "konsole" ) ;
157
151
if ( File . Exists ( test ) )
158
- {
159
152
return new Terminal ( test , "--workdir \" {0}\" " ) ;
160
- }
161
153
162
154
test = Path . Combine ( path , "xfce4-terminal" ) ;
163
155
if ( File . Exists ( test ) )
164
- {
165
156
return new Terminal ( test , "--working-directory=\" {0}\" " ) ;
166
- }
167
157
168
158
test = Path . Combine ( path , "lxterminal" ) ;
169
159
if ( File . Exists ( test ) )
170
- {
171
160
return new Terminal ( test , "--working-directory=\" {0}\" " ) ;
172
- }
173
161
174
162
test = Path . Combine ( path , "deepin-terminal" ) ;
175
163
if ( File . Exists ( test ) )
176
- {
177
164
return new Terminal ( test , "--work-directory \" {0}\" " ) ;
178
- }
165
+
166
+ test = Path . Combine ( path , "mate-terminal" ) ;
167
+ if ( File . Exists ( test ) )
168
+ return new Terminal ( test , "--working-directory=\" {0}\" " ) ;
179
169
}
180
170
181
171
return null ;
0 commit comments