Skip to content

Commit

Permalink
Use GLib.AppInfo to open records folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohelm97 committed Mar 17, 2019
1 parent 303c0ed commit 7faf4df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ namespace ScreenRecorder {
return;
}
try {
Process.spawn_command_line_async ("xdg-open \"%s\"".printf (settings.get_string ("folder-dir")));
debug("xdg-open \"%s\"".printf (parameter.get_string ()));
File records_folder = File.new_for_path (settings.get_string ("folder-dir"));
AppInfo.launch_default_for_uri (records_folder.get_uri (), null);
debug("launch_default_for_uri %s".printf (parameter.get_string ()));
} catch (SpawnError e) {
GLib.warning (e.message);
}
Expand Down

0 comments on commit 7faf4df

Please sign in to comment.