mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 15:53:51 +01:00
remove X- from DE names
This commit is contained in:
@@ -246,6 +246,9 @@ static inline void getDE(FFWMDEResult* result, ProcData* procData)
|
||||
{
|
||||
ffStrbufSetS(&result->deProcessName, result->sessionDesktop);
|
||||
ffStrbufSet(&result->dePrettyName, &result->deProcessName);
|
||||
|
||||
if(ffStrbufStartsWithIgnCaseS(&result->dePrettyName, "X-"))
|
||||
ffStrbufSubstrAfter(&result->deProcessName, 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user