4 Commits
dev ... master

Author SHA1 Message Date
7638284616 fix: try $XDG_CONFIG_HOME first 2026-02-27 16:10:13 +03:00
25fbc7852d updated screenshot 2026-02-04 21:50:01 +03:00
a200d70b14 bump ver 2026-02-04 00:39:14 +03:00
f3e842d7d2 bump ver 2026-02-04 00:38:26 +03:00
6 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# Maintainer: Daniel Dada <dan@binarygoose.dev> # Maintainer: Daniel Dada <dan@binarygoose.dev>
pkgname=clrsync pkgname=clrsync
pkgver=1.1.0 pkgver=1.1.2
pkgrel=1 pkgrel=1
pkgdesc="Color scheme manager" pkgdesc="Color scheme manager"
arch=('x86_64') arch=('x86_64')

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(clrsync VERSION 1.1.0 LANGUAGES CXX) project(clrsync VERSION 1.1.2 LANGUAGES CXX)
include(GNUInstallDirs) include(GNUInstallDirs)

View File

@@ -1 +1 @@
1.1.0 1.1.2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 856 KiB

After

Width:  |  Height:  |  Size: 240 KiB

View File

@@ -6,7 +6,7 @@
namespace clrsync::core namespace clrsync::core
{ {
const std::string GIT_SEMVER = "1.1.1+git.g6badab9"; const std::string GIT_SEMVER = "1.1.2+git.g25fbc78";
const std::string version_string(); const std::string version_string();
} // namespace clrsync::core } // namespace clrsync::core

View File

@@ -4,6 +4,7 @@
#include "core/io/toml_file.hpp" #include "core/io/toml_file.hpp"
#include "core/palette/color.hpp" #include "core/palette/color.hpp"
#include <cstdlib>
#include <filesystem> #include <filesystem>
#include <fstream> #include <fstream>
@@ -68,6 +69,9 @@ Result<void> config::initialize(std::unique_ptr<clrsync::core::io::file> file)
std::filesystem::path config::get_user_config_dir() std::filesystem::path config::get_user_config_dir()
{ {
const char *xdg_config_home = std::getenv("XDG_CONFIG_HOME");
if (xdg_config_home && xdg_config_home[0] != '\0')
return normalize_path(xdg_config_home) / "clrsync";
std::filesystem::path home = normalize_path("~"); std::filesystem::path home = normalize_path("~");
return home / ".config" / "clrsync"; return home / ".config" / "clrsync";
} }