Skip to content
Advertisement

Tag: qprocess

Can I use QFile to truncate a write protected file?

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

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

Advertisement