Subject: Re: [X2Go-Dev] Bug#526: Included PulseAudio consumes too much CPU when launched with high priority

From: Nable 80 <[email-masked]>
Date: Sun, 29 Jun 2014 19:47:44 +0400

Hi Mike!

> Our PA expert will take a look at that (I hope!).
I've attached possible workaround, although I'm not sure if it's acceptable.
diff --git a/onmainwindow.cpp b/onmainwindow.cpp
index d4fef23..1a6997b 100644
--- a/onmainwindow.cpp
+++ b/onmainwindow.cpp
@@ -9799,7 +9799,7 @@ void ONMainWindow::startPulsed()
     if (QFile::exists(homeDir+"/.x2go/pulse/.pulse/"+QHostInfo::localHostName ()+"-runtime/pid"))
         QFile::remove(homeDir+"/.x2go/pulse/.pulse/"+QHostInfo::localHostName ()+"-runtime/pid");
     pulseDir.replace("/","\\");
-    pulseArgs<<"--exit-idle-time=-1"<<"-n"<<"-F"<<pulseDir+"\\config.pa";
+    pulseArgs<<"--high-priority=no"<<"--exit-idle-time=-1"<<"-n"<<"-F"<<pulseDir+"\\config.pa";
     if (debugging)
         pulseArgs<<"--log-level=debug"<<"--verbose"<<"--log-target=file:"+pulseDir+"\\pulse.log";
 #else