DisplayServer (Linux): mark plasmashell --version as slow operation

It costs more than 1 sec some time
This commit is contained in:
李通洲
2023-06-20 18:15:30 +08:00
parent 9d6e1eb47d
commit 113848c578
+1 -1
View File
@@ -138,7 +138,7 @@ static void getKDE(const FFinstance* instance, FFDisplayServerResult* result)
ffParsePropFileData(instance, "wayland-sessions/plasmawayland.desktop", "X-KDE-PluginInfo-Version =", &result->deVersion);
if(result->deVersion.length == 0)
ffParsePropFileData(instance, "wayland-sessions/plasmawayland5.desktop", "X-KDE-PluginInfo-Version =", &result->deVersion);
if(result->deVersion.length == 0)
if(result->deVersion.length == 0 && instance->config.allowSlowOperations)
{
if (ffProcessAppendStdOut(&result->deVersion, (char* const[]){
"plasmashell",