File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/detection/displayserver/linux Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,12 @@ static void applyPrettyNameIfDE(FFDisplayServerResult* result, const char* name)
226226 ) {
227227 ffStrbufSetS (& result -> deProcessName , "lxqt-session" );
228228 ffStrbufSetS (& result -> dePrettyName , FF_DE_PRETTY_LXQT );
229- FF_STRBUF_AUTO_DESTROY wmProcessNameBuffer = ffStrbufCreate ();
230- ffParsePropFileConfig ("lxqt/session.conf" , "window_manager =" , & wmProcessNameBuffer );
231- applyBetterWM (result , wmProcessNameBuffer .chars );
229+ if (result -> wmProcessName .length == 0 )
230+ {
231+ FF_STRBUF_AUTO_DESTROY wmProcessNameBuffer = ffStrbufCreate ();
232+ ffParsePropFileConfig ("lxqt/session.conf" , "window_manager =" , & wmProcessNameBuffer );
233+ applyBetterWM (result , wmProcessNameBuffer .chars );
234+ }
232235 }
233236
234237 else if (
You can’t perform that action at this time.
0 commit comments