1
0
Fork 0
Commit graph

11 commits

Author SHA1 Message Date
Ondřej Lysoněk
d46834808c tuned-gui: Sort plugins based on their name
Previously the sorting was done by comparing the objects themselves,
which is not what we want and it doesn't work in Python 3 - TypeError
is raised, e.g:
TypeError: '<' not supported between instances of 'BootloaderPlugin' and 'MountsPlugin'

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-11 01:04:46 +02:00
Ondřej Lysoněk
c37b6220d4 tuned-gui: Fix a traceback
Resolves: rhbz#1536835
Fixes #95

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-06-11 09:59:57 +02:00
Jaroslav Škarvada
f563c7d756
An attempt to port Tuned to python3 and keeping it python2 compatible
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-12-21 10:20:13 +01:00
Ondřej Lysoněk
93d872191c Raise NotImplementedError instead of NotImplemented
NotImplemented is not an exception type. This patch makes some pylint
errors go away.
2017-02-13 16:28:33 +01:00
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
Jaroslav Škarvada
83d573727b gui: fixed traceback when attempting to start tuned
Another forgotten DBus paths copy&paste error

Related: rhbz#1356369

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-08-09 16:03:35 +02:00
Jaroslav Škarvada
e6c6e15733 gui: fixed traceback caused by DBus paths copy&paste error
Related: rhbz#1356369

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-07-21 11:08:20 +02:00
Yixun Lan
e675ab0b4c pygobject: fix import Gtk without specify version error
Signed-off-by: Yixun Lan <dlan@gentoo.org>
2016-07-15 15:49:25 +02:00
Jaroslav Škarvada
6eb14deba3 tuned-gtk: fixed global name 'GlobalConfig' is not defined
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-07-09 17:19:18 +02:00
Jaroslav Škarvada
c73bc90ae8 recommend: add global config option to disable 'recommend' functionality
On some platforms the 'recommend' functionality doens't make sense
as there is only one product variant. On such platforms the recommend
functionality can be disabled by adding/changing the following in
the global config (/etc/tuned/tuned-main.conf):

recommend_command = 0

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-06-10 16:26:36 +02:00
Jaroslav Škarvada
34a9bc42f5 Added tuned-gui
Main implementation was done by Marek Staňa.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-10-01 16:16:45 +02:00