Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #46 from ryonakano/fix-deprecation
Browse files Browse the repository at this point in the history
Fix deprecated Granite.Services.System.open_uri
  • Loading branch information
OctoD authored Mar 3, 2020
2 parents d9e4a29 + 7ccf587 commit 32c656a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Views/MainView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ namespace Alcadica.Views {

project_editing.on_template_creation_end.connect ((path) => {
File directory = File.new_for_path (path);
Granite.Services.System.open_uri (directory.get_uri ());
try {
AppInfo.launch_default_for_uri (directory.get_uri (), null);
} catch (Error e) {
warning (e.message);
}
});

welcome.app.connect (() => {
Expand Down

0 comments on commit 32c656a

Please sign in to comment.