diff --git a/README.md b/README.md index e2b6fc826..abb3f31cd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # fastfetch -fastfetch is a [neofetch](https://github.com/dylanaraps/neofetch) like tool for fetching system information and displaying them in a pretty way. It is written in c to achieve much better performance, in return only linux is supported. +fastfetch is a [neofetch](https://github.com/dylanaraps/neofetch) like tool for fetching system information and displaying them in a pretty way. It is written in c to achieve much better performance, in return only linux is supported. Additional it uses mechanismen like multithreading and caching to finish as fast as possible. The output on my personal machine with default configurations looks like this: ![example output](screenshots/example.png) diff --git a/src/helpers/calculatePlasma.c b/src/helpers/calculatePlasma.c index c6eaee637..5d47778da 100644 --- a/src/helpers/calculatePlasma.c +++ b/src/helpers/calculatePlasma.c @@ -42,6 +42,7 @@ void ffCalculatePlasma(FFinstance* instance, FFstrbuf** themeNamePtr, FFstrbuf** if(kdeglobals == NULL) { ffStrbufDestroy(&kdeglobalsFile); + pthread_mutex_unlock(&mutex); return; } diff --git a/src/helpers/calculateWM.c b/src/helpers/calculateWM.c index f0086fa58..d652f7783 100644 --- a/src/helpers/calculateWM.c +++ b/src/helpers/calculateWM.c @@ -39,6 +39,7 @@ void ffCalculateWM(FFinstance* instance, FFstrbuf** prettyNamePtr, FFstrbuf** pr if(proc == NULL) { ffStrbufSetS(&error, "opendir(\"/proc/\") == NULL"); + pthread_mutex_unlock(&mutex); return; } @@ -64,10 +65,7 @@ void ffCalculateWM(FFinstance* instance, FFstrbuf** prettyNamePtr, FFstrbuf** pr closedir(proc); if(prettyName.length == 0) - { ffStrbufSetS(&error, "No process name matches the name of known display managers"); - return; - } pthread_mutex_unlock(&mutex); }