From c09204dabcf1af7f0e436045158a1848098defa8 Mon Sep 17 00:00:00 2001 From: Madman10K Date: Mon, 6 May 2024 16:34:29 +0300 Subject: [PATCH] Update XDGBasedir --- UXDGBaseDir.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UXDGBaseDir.cpp b/UXDGBaseDir.cpp index ee57e36..2f1259c 100644 --- a/UXDGBaseDir.cpp +++ b/UXDGBaseDir.cpp @@ -45,9 +45,8 @@ std::vector UXDG::splitEnv(const uxdgstring& str) noexcept void handleDir(uxdgstring& dir, std::filesystem::perm_options permsOpt = std::filesystem::perm_options::add) { -#ifdef UXDG_CREATE_DIRS std::filesystem::path f(dir); - +#ifdef UXDG_CREATE_DIRS try { if (!exists(f)) @@ -337,4 +336,4 @@ uxdgstring UXDG::legacyUserThemesDir() noexcept uxdgstring UXDG::legacyUserFontsDir() noexcept { return HOME() + "/.fonts"; -} \ No newline at end of file +}