Skip to content

Commit 4cc091b

Browse files
committed
Use Gtk.FileLauncher
1 parent 27aa99a commit 4cc091b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

plugins/FilePlugin/Plugin.vala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ public class FileMatch : Match {
1212
}
1313

1414
public override async void activate () throws Error {
15-
// This works where UriLauncher doesn't however make sure this continues working and
16-
// doesn't start crashing stuff
17-
yield new Xdp.Portal ().open_uri (null, uri, NONE, null);
15+
yield new Gtk.FileLauncher (File.new_for_uri (uri)).launch (null, null);
1816
}
1917
}
2018

plugins/FilePlugin/meson.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ shared_library(
22
'FilePlugin',
33
'Plugin.vala',
44
dependencies: [
5-
lib_dep,
6-
dependency('libportal')
5+
lib_dep
76
],
87
install: true,
98
install_dir: plugin_dir

0 commit comments

Comments
 (0)