Function MimeAppsGroup.joinApps

Join list of desktop ids into string.

string joinApps(Range) (
  Range apps,
  bool trailingSemicolon = true
) @trusted
if (isInputRange!Range && is(ElementType!Range : string));

See Also

splitApps

Example

assert(joinApps(["kde4-kate.desktop", "kde4-kwrite.desktop", "geany.desktop"]) == "kde4-kate.desktop;kde4-kwrite.desktop;geany.desktop;");
assert(joinApps((string[]).init) == string.init);
assert(joinApps(["geany.desktop"], false) == "geany.desktop");
assert(joinApps(["geany.desktop"], true) == "geany.desktop;");
assert(joinApps((string[]).init, true) == string.init);