Skip to content

Commit

Permalink
patch for manjaro
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Oct 21, 2014
1 parent 0b01ef7 commit d70d1d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/screenfetch-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,18 @@ void detect_distro(char* str)
safe_strncpy(str, "Angstrom", MAX_STRLEN);
}

else if (FILE_EXISTS("/etc/manjaro-release"))
{
safe_strncpy(str, "Manjaro", MAX_STRLEN);
}

else if (FILE_EXISTS("/etc/lsb-release"))
{
distro_file = fopen("/etc/lsb-release", "r");
fgets(distro_name_str, MAX_STRLEN, distro_file);
distro_name_str[strlen(distro_name_str) - 1] = '\0';
fclose(distro_file);

snprintf(str, MAX_STRLEN, "%s", distro_name_str + 11);
}

Expand Down

0 comments on commit d70d1d5

Please sign in to comment.