userAppDataMimeAppsListPaths

Find mimeapps.list files deprecated locations for user overrides including specific for the current desktop. Found paths are not checked for existence or write access. These locations are kept for compatibility.

This function is Freedesktop only.

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

Examples

auto dataHomeGuard = EnvGuard("XDG_DATA_HOME", "/home/user/data");
auto currentDesktopGuard = EnvGuard("XDG_CURRENT_DESKTOP", "unity:GNOME");

assert(userAppDataMimeAppsListPaths() == ["/home/user/data/applications/unity-mimeapps.list", "/home/user/data/applications/gnome-mimeapps.list", "/home/user/data/applications/mimeapps.list"]);

See Also

Meta