Gio.AppInfo.launch_default_for_uri() should be used as unified method for opening files in their default applications, instead of spawning xdg-open subprocess. This should save up on creating child processes and the indicator uses Gio anyway, so there's no purpose for xdg-open.
Use Gio.DesktopAppInfo.new_from_filename() instead of relying on extensions for .desktop files
Gio.AppInfo.launch_default_for_uri()
should be used as unified method for opening files in their default applications, instead of spawningxdg-open
subprocess. This should save up on creating child processes and the indicator uses Gio anyway, so there's no purpose forxdg-open
.Use
Gio.DesktopAppInfo.new_from_filename()
instead of relying on extensions for.desktop
files