When running tuna --config_file_list
there is a warning about Gtk being imported without specifying a version
first.
Fix this using gi.require.version before the import like in tuna/tuna_gui.py
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
tuna/config.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tuna/config.py b/tuna/config.py
index 5d6848c5f314..09d26dd87029 100644
--- a/tuna/config.py
+++ b/tuna/config.py
@@ -7,7 +7,10 @@ import codecs
import configparser
from time import localtime, strftime
from subprocess import Popen, PIPE, STDOUT, call
+import gi
+gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
+
TUNED_CONF = """[sysctl]\n"""
--
2.31.1
Show replies by date