vendorMimeAppsListPaths

Find mimeapps.list files locations for sysadmin and ISV overrides including specific for the current desktop. Found paths are not checked for existence.

This function is Freedesktop only.

  1. string[] vendorMimeAppsListPaths()
    @safe nothrow
    static if(isFreedesktop)
    string[]
    vendorMimeAppsListPaths
    ()
  2. string[] vendorMimeAppsListPaths(string[] desktopPrefixes)

Examples

auto configDirsGuard = EnvGuard("XDG_CONFIG_DIRS", "/etc/xdg");
auto currentDesktopGuard = EnvGuard("XDG_CURRENT_DESKTOP", "unity:GNOME");

assert(vendorMimeAppsListPaths() == ["/etc/xdg/unity-mimeapps.list", "/etc/xdg/gnome-mimeapps.list", "/etc/xdg/mimeapps.list"]);

See Also

Meta