Skip to content

Commit

Permalink
Running formatter and small code clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpayne committed Feb 1, 2016
1 parent fe4081e commit bc0104e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/Domain/VisConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,23 @@ static const uint32_t k_default_low_cutoff_frequency = 30;
static const uint32_t k_default_high_cutoff_frequency = 22050;

// config path defaults
// XDG_CONFIG_HOME is usually "~/.config"
static const char *k_xdg_config_home{std::getenv("XDG_CONFIG_HOME")};

// http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
static const char* k_xdg_config_home{std::getenv("XDG_CONFIG_HOME")};
static const std::string k_default_config_path_root{k_xdg_config_home != nullptr ?
std::string(k_xdg_config_home) + "/vis" : std::string(std::getenv("HOME")) + "/.config/vis"};
static const std::string k_default_config_path = k_default_config_path_root + "/config";
static const std::string k_colors_directory{k_default_config_path_root + "/colors/"};
// use ${XDG_CONFIG_HOME}/vis/ as the default config directory
static const std::string k_default_config_path_root{
(k_xdg_config_home != nullptr
? std::string{k_xdg_config_home}
: std::string{std::getenv("HOME")} + "/.config") +
"/vis/"};
static const std::string k_default_config_path =
k_default_config_path_root + "config";
static const std::string k_colors_directory{k_default_config_path_root +
"colors/"};
static const std::string k_default_log_path{k_default_config_path_root +
"vis.log"};
static const std::string k_default_colors_path{"colors"};
static const std::string k_default_log_path{k_default_config_path_root + "/vis.log"};

// Default characters for visualizers
static const wchar_t k_default_spectrum_character{k_space_wchar};
Expand Down

0 comments on commit bc0104e

Please sign in to comment.