Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get output stream from QProcess
Forum Updated to NodeBB v4.3 + New Features

Get output stream from QProcess

Scheduled Pinned Locked Moved Solved General and Desktop
21 Posts 4 Posters 8.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T t0msk
    26 Oct 2019, 08:44

    @JonB said in Get output stream from QProcess:

    @t0msk

    • You only need to use sudo because you are going apt 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 using polkit 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 use pkexec 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.

    J Offline
    J Offline
    JonB
    wrote on 29 Oct 2019, 08:12 last edited by JonB
    #21

    @t0msk

    As I said many times apt update is only example, and if you use pkexec 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 go pkexec (though the whole point of that is it's part of polkit, and the point of polkit is that you are supposed to configure it so that it does not "show system popup like on screenshot").

    1 Reply Last reply
    0

    21/21

    29 Oct 2019, 08:12

    • Login

    • Login or register to search.
    21 out of 21
    • First post
      21/21
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved