Skip to content
Advertisement

Tag: qfile

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

Advertisement