diff --git a/ChangeLog b/ChangeLog index 030410a9..109eb686 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +v1.2.0 (10.12.2014): + * Add NCurses mode + * Add possibility to disable GTK/NCurses/Libcpuid/Libdmi before compiling + * Fixes: + ** CPU multipliers calculation + ** Relative path of file on error + ** Segfault on unknown multiplier + ** Unwanted characters + + v1.1.0 (09.28.2014): * Remove calls to external command 'dmidecode', use provided library instead of * Remove calls to external command 'lscpu' diff --git a/README.md b/README.md index e5ca34b6..f4461986 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # CPU-X -CPU-X is a Free software that gathers information on CPU & motherboard. -CPU-X is similar to CPU-Z (only available for Microsoft Windows, see http://www.cpuid.com/softwares/cpu-z.html for more informations), but CPU-X is designed for GNU/Linux. +CPU-X is a Free software that gathers information on CPU & motherboard. +CPU-X is similar to CPU-Z (only available for Microsoft Windows, see http://www.cpuid.com/softwares/cpu-z.html for more informations), but CPU-X is designed for GNU/Linux. It is written in C, and GUI uses GTK3+ library, so it's working out-of-box on X11 or Wayland. @@ -23,7 +23,12 @@ It is written in C, and GUI uses GTK3+ library, so it's working out-of-box on X1 ## Build First, you must to have CMake installed to continue (only needed for building). -GTK headers are needed to compile. +GTK headers are needed to compile with GTK support. +You can disable some functionalities by passing argument `-D=0` when running CMake, like this: +`-DWITH_GTK=0` will disable support of GUI in GTK3+ +`-DWITH_NCURSES=0` will disable support of NCurses mode (need to run from a shell) +`-DWITH_LIBCPUID=0` will avoid calls to Libcpuid (not recommended) +`-DWITH_LIBDMI=0` will not compile Libdmi and will avoid calls to Libdmi (not recommended) * If you want to install CPU-X on your system, do: ``` @@ -45,8 +50,9 @@ Note: portable binary will be in directory "ebuild/bin". ## Usage -Start program with root privileges allow to use Dmidecode. -Simply run command `cpu-x` if it is installed on you system, or double-click on `cpu-x` is also possible. +Start program with **root privileges** allow to use **Dmidecode** (Libdmi). +Simply run command `cpu-x` if it is installed on you system, or double-click on `cpu-x` is also possible. +If GTK and NCurses are supported, you can start CPU-X in NCurses mode by taping in a shell `cpu-x --no-gui`. ## Download binairies diff --git a/data/cpu-x.ui b/data/cpu-x.ui index 47f112ff..fa949f10 100644 --- a/data/cpu-x.ui +++ b/data/cpu-x.ui @@ -1634,7 +1634,7 @@ Based on GTK3+ library -Version : 1.1.0 +Version : 1.2.0 Author : X0rg GitHub : https://github.com/X0rg diff --git a/src/cpu-x.h b/src/cpu-x.h index 36eb5868..98626287 100644 --- a/src/cpu-x.h +++ b/src/cpu-x.h @@ -26,7 +26,7 @@ #define HAVE_STDINT_H /* Skip conflicts with */ #define BASEFILE (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) /* Don't show full path of file */ #define PRGNAME "CPU-X" -#define PRGVER "1.1.0" +#define PRGVER "1.2.0" #define EXIT_FNO 2 /* Exit when File Not Open */ #define S 80 /* Big char* */