IEnumerable <DesktopApplication> GetApplicationsForMimeType(string mimeType) { if (useGio) { return(Gio.GetAllForType(mimeType)); } else { return(GetGnomeVfsApplications(mimeType)); } }
public override DesktopApplication [] GetAllApplications(string mimeType) { if (useGio) { return(Gio.GetAllForType(mimeType)); } var list = new List <DesktopApplication> (); var apps = Gnome.Vfs.Mime.GetAllApplications(mimeType); foreach (var app in apps) { var dap = (DesktopApplication)Marshal.PtrToStructure(app.Handle, typeof(DesktopApplication)); list.Add(dap); } return(list.ToArray()); }
IEnumerable <DesktopApplication> GetApplicationsForMimeType(string mimeType) { return(Gio.GetAllForType(mimeType)); }