Get output stream from QProcess
-
@JonB said in Get output stream from QProcess:
-
You only need to use
sudo
because you are goingapt update
, which does a system-wide update of stuff. Why does your app need that? That's my point. -
Yes to what you wrote about
sudo -S
. -
Like I said I have never used
polkit
so it's up to you to read up. You say "and I didn't have to set up polkit on my system", but isn't the point that you are being prompted for a password here where the point of usingpolkit
is to allow stuff through without requiring a password? So it seems to me it is not currently set up to allow whatever you are trying through without a password, and an admin would need to configure it to make it allow no password here?
As I said many times
apt update
is only example, and if you usepkexec
it will show system popup like on screenshot in my last post, then you have to enter password and after that command will be executed.wrote on 29 Oct 2019, 08:12 last edited by JonBAs I said many times
apt update
is only example, and if you usepkexec
it will show system popup like on screenshot ...@jsulm has leapt to my defence :) And as I have said many times, my question is not about
apt update
but about why you need to run it or anything else sudo from your program? This equally applies if you gopkexec
(though the whole point of that is it's part ofpolkit
, and the point ofpolkit
is that you are supposed to configure it so that it does not "show system popup like on screenshot"). -
21/21