Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tuned-gui: fixed pkexec to work from GNOME Shell
GNOME Shell doesn't seem to run applications through the shell or with some persistent parent, thus pkexec cannot be execed over the original tuned-gui process, because it wouldn't pass the pkexec getppid check. The check is there to ensure that the pkexec will not be owned by the init process. This fix runs the pkexec as a child process. The minor drawback is that there will be two tuned-gui processes - the original process running under the user and the pkexeced process running under the root. The original process will effectively do nothing, it will just wait for the pkexeced process to exit. Resolves: rhbz#1377896 Signed-off-by: Jaroslav Škarvada <[email protected]>
- Loading branch information