private string GetXdgDir (string type) { try { return XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (String.Format ("XDG_{0}_DIR", type), null); } catch { return null; } }