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

Commit

Permalink
Fix deprecated Granite.Services.System.open_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano committed Mar 3, 2020
1 parent a3bc671 commit 5f5e42d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Views/MainView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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 Expand Up @@ -105,4 +109,4 @@ namespace Alcadica.Views {
});
}
}
}
}

0 comments on commit 5f5e42d

Please sign in to comment.