From d6746de79deae750db36470bc12b39a9c901c15e Mon Sep 17 00:00:00 2001 From: Dallas Strouse <93224879+orowith2os@users.noreply.github.com> Date: Sun, 20 Aug 2023 12:28:05 -0500 Subject: [PATCH 1/2] Don't load in GTK when using the CLI frontend --- bottles/frontend/cli/cli.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/bottles/frontend/cli/cli.py b/bottles/frontend/cli/cli.py index 8a785946aa..956d1a63eb 100644 --- a/bottles/frontend/cli/cli.py +++ b/bottles/frontend/cli/cli.py @@ -27,9 +27,6 @@ import gi -warnings.filterwarnings("ignore") # suppress GTK warnings -gi.require_version('Gtk', '4.0') - APP_VERSION = "@APP_VERSION@" pkgdatadir = "@pkgdatadir@" # noinspection DuplicatedCode From fb01e5a00942e6f3cc98abc144390979f4398cfe Mon Sep 17 00:00:00 2001 From: Dallas Strouse <93224879+orowith2os@users.noreply.github.com> Date: Sun, 20 Aug 2023 12:36:43 -0500 Subject: [PATCH 2/2] Remove unused imports --- bottles/frontend/cli/cli.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/bottles/frontend/cli/cli.py b/bottles/frontend/cli/cli.py index 956d1a63eb..7a79843344 100644 --- a/bottles/frontend/cli/cli.py +++ b/bottles/frontend/cli/cli.py @@ -23,9 +23,6 @@ import signal import sys import uuid -import warnings - -import gi APP_VERSION = "@APP_VERSION@" pkgdatadir = "@pkgdatadir@"