From cca81f9a8bd6631f8dca31af41d9e28f72ab5d4b Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Thu, 16 Jun 2022 09:22:55 +0800
Subject: [PATCH] modify ukui-volume-control-applet satrtup

---
 ukui-session/modulemanager.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/ukui-session/modulemanager.cpp b/ukui-session/modulemanager.cpp
index fc718db..1224086 100644
--- a/ukui-session/modulemanager.cpp
+++ b/ukui-session/modulemanager.cpp
@@ -477,9 +477,23 @@ void ModuleManager::timerUpdate(){
             qDebug() << "the sogouImeService exist so the fcitx-ui-qimpanel will not start";
             continue;
         }
+        if(i->fileName()=="/etc/xdg/autostart/ukui-volume-control-applet.desktop" && file_sogou.exists()){
+            qDebug() << "wait pulseaudio to start";
+            continue;
+        }
         startProcess(*i, false);
     }
 
+    for (XdgDesktopFileList::const_iterator i = mApplication.constBegin(); i != mApplication.constEnd(); ++i) {
+        qDebug() << i->fileName();
+        if(i->fileName()=="/etc/xdg/autostart/ukui-volume-control-applet.desktop" && file_sogou.exists()){
+            qDebug() << "ukui-volume-control-applet to start";
+            startProcess(*i, false);
+      	     break;
+        }
+        continue;
+    }
+
     qDebug() << "Start force application: ";
     const QString ws = "ukui-window-switch";
     XdgDesktopFile ukui_ws= XdgDesktopFile(XdgDesktopFile::ApplicationType,"ukui-window-switch", ws);
-- 
2.33.0

