1
0
Fork 0
tuned/tuned-gui.desktop
Jaroslav Škarvada 325dd17ee5 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 <jskarvad@redhat.com>
2016-09-21 16:43:39 +02:00

11 lines
238 B
Desktop File

[Desktop Entry]
Encoding=UTF-8
Name=tuned-gui
GenericName=tuned-gui
Comment=GTK GUI that can control Tuned daemon and provides simple profile editor
Exec=tuned-gui
Icon=tuned
Terminal=false
Type=Application
Categories=System;
Version=1.0