mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
rewrote shell / terminal detection
This commit is contained in:
@@ -32,9 +32,9 @@ static inline void* detectWMDEThreadMain(void* instance)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void* detectTerminalThreadMain(void* instance)
|
||||
static inline void* detectTerminalShellThreadMain(void* instance)
|
||||
{
|
||||
ffDetectTerminal((FFinstance*)instance);
|
||||
ffDetectTerminalShell((FFinstance*)instance);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ static inline void* startThreadsThreadMain(void* instance)
|
||||
pthread_create(>k4Thread, NULL, detectGTK4ThreadMain, instance);
|
||||
pthread_detach(gtk4Thread);
|
||||
|
||||
pthread_t terminalThread;
|
||||
pthread_create(&terminalThread, NULL, detectTerminalThreadMain, instance);
|
||||
pthread_detach(terminalThread);
|
||||
pthread_t terminalShellThread;
|
||||
pthread_create(&terminalShellThread, NULL, detectTerminalShellThreadMain, instance);
|
||||
pthread_detach(terminalShellThread);
|
||||
|
||||
pthread_t plasmaThread;
|
||||
pthread_create(&plasmaThread, NULL, detectPlasmaThreadMain, instance);
|
||||
|
||||
Reference in New Issue
Block a user