diff --git a/src/fastfetch.c b/src/fastfetch.c index f6a7903ca..23929757f 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -17,6 +17,8 @@ "## Each line is whitespace trimmed on beginn and end.\n" \ "## Empty lines or lines starting with # are ignored.\n" \ "## There are more arguments possible than listed here, take a look at fastfetch --help!\n" \ + "## This version of the file was shipped with "FASTFETCH_PROJECT_VERSION".\n" \ + "## Use fastfetch --print-default-config > ~/.config/fastfetch/config.conf to generate a new one with current defaults.\n" \ "\n" \ "## General options:\n" \ "# --structure "FASTFETCH_DEFAULT_STRUCTURE"\n" \ @@ -202,7 +204,7 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con } else if(strcasecmp(key, "-v") == 0 || strcasecmp(key, "--version") == 0) { - puts(FASTFETCH_PROJECT_NAME" "FASTFETCH_PROJECT_VER); + puts(FASTFETCH_PROJECT_NAME" "FASTFETCH_PROJECT_VERSION); exit(0); } else if(strcasecmp(key, "--list-logos") == 0) diff --git a/src/fastfetch_config.h.in b/src/fastfetch_config.h.in index 19bae2c89..18905e234 100644 --- a/src/fastfetch_config.h.in +++ b/src/fastfetch_config.h.in @@ -2,10 +2,6 @@ #define FASTFETCH_INDLUDED_fastfetch_config_h_in #define FASTFETCH_PROJECT_NAME "@PROJECT_NAME@" -#define FASTFETCH_PROJECT_VER "@PROJECT_VERSION@" - -// #define FASTFETCH_PROJECT_VER_MAJOR "@PROJECT_VERSION_MAJOR@" -// #define FASTFETCH_PROJECT_VER_MINOR "@PROJECT_VERSION_MINOR@" -// #define FASTFETCH_PTOJECT_VER_PATCH "@PROJECT_VERSION_PATCH@" +#define FASTFETCH_PROJECT_VERSION "@PROJECT_VERSION@" #endif // FASTFETCH_INDLUDED_fastfetch_config_h_in \ No newline at end of file