Skip to content

Commit 7faf4df

Browse files
committed
Use GLib.AppInfo to open records folder
1 parent 303c0ed commit 7faf4df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Application.vala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ namespace ScreenRecorder {
5050
return;
5151
}
5252
try {
53-
Process.spawn_command_line_async ("xdg-open \"%s\"".printf (settings.get_string ("folder-dir")));
54-
debug("xdg-open \"%s\"".printf (parameter.get_string ()));
53+
File records_folder = File.new_for_path (settings.get_string ("folder-dir"));
54+
AppInfo.launch_default_for_uri (records_folder.get_uri (), null);
55+
debug("launch_default_for_uri %s".printf (parameter.get_string ()));
5556
} catch (SpawnError e) {
5657
GLib.warning (e.message);
5758
}

0 commit comments

Comments
 (0)