I am not running the application itself as root. Rather than do a convoluted With QProcess, I would rather simply open /sys/devices/system/cpu/intel_pstate/min_perf_pct and truncate a number into it. It would look something like this: Is there a way to do this without having to start or run any other part of the application as root? I am using pkexec for
Tag: qprocess
How to get the returned stdout of a program called with QProcess?
I am writing a program in Qt and currently using popen to run a linux command and read the output into a string: So I’d like to throw the above code away as I’d prefer to use higher level facilities provided by Qt if possible. Does anyone have an example of how to do this with QProcess or atleast a
How to force a priority on QProcess
I do not see any API to set the priority of a QProcess in Qt Documentation. I assume the process is started with normal priority. Is there a way to start the process with lower priority on Linux? Answer I dont think there exists an API to set the priority of the process using a Qt call. I used direct