Skip to content

Commit dfd08be

Browse files
committed
Fix GtkBackend compilation errors
1 parent 909e4a9 commit dfd08be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/GtkBackend/GtkBackend.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,15 @@ public final class GtkBackend: AppBackend {
190190

191191
success = process.terminationStatus == 0
192192
} catch {
193-
break
193+
194194
}
195195
#endif
196196

197-
// Fall back to opening the parent directory without highlighting the file.
198-
try openExternalURL(url.deletingLastPathComponent())
197+
if !success {
198+
// Fall back to opening the parent directory without highlighting
199+
// the file.
200+
try openExternalURL(url.deletingLastPathComponent())
201+
}
199202
}
200203

201204
private func renderMenu(

0 commit comments

Comments
 (0)