Add function for opening images with Gio::AppInfo

This commit is contained in:
Lawrence Lee
2021-04-12 21:53:04 -07:00
parent 3efbb99ba9
commit 349ceb9336
2 changed files with 11 additions and 0 deletions

View File

@@ -339,3 +339,8 @@ bool ExtProgStore::openInCustomEditor (const Glib::ustring& fileName)
#endif
}
bool ExtProgStore::openInExternalEditor(const Glib::ustring &fileName, const Glib::RefPtr<Gio::AppInfo> &editorInfo)
{
return editorInfo->launch(Gio::File::create_for_path(fileName));
}