From 7bdd7584ff4d66cb34eaf4b28846d2392347faa6 Mon Sep 17 00:00:00 2001 From: Vladyslav Hroshev Date: Fri, 18 Apr 2025 19:38:20 +0300 Subject: [PATCH] Fixed #56. Use another way to supress stdout for update-alternatives --- scripts/utils/alternatives_updater.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/utils/alternatives_updater.py b/scripts/utils/alternatives_updater.py index 1761dce..cc13a30 100644 --- a/scripts/utils/alternatives_updater.py +++ b/scripts/utils/alternatives_updater.py @@ -47,9 +47,9 @@ class AlternativesUpdater: gdm-theme.gresource, /usr/share/gnome-shell/gnome-shell-theme.gresource) """ subprocess.run([ - "update-alternatives", "--quiet", "--install", + "update-alternatives", "--install", link, name, str(path), str(priority) - ], check=True) + ], stdout=subprocess.DEVNULL, check=True) Console.Line().success(f"Installed {name} alternative.") @staticmethod @@ -64,9 +64,9 @@ class AlternativesUpdater: set(gdm-theme.gresource, /usr/share/gnome-shell/gnome-shell-theme.gresource) """ subprocess.run([ - "update-alternatives", "--quiet", "--set", + "update-alternatives", "--set", name, str(path) - ], check=True) + ], stdout=subprocess.DEVNULL, check=True) @staticmethod @ubuntu_specific @@ -80,7 +80,7 @@ class AlternativesUpdater: remove(gdm-theme.gresource, /usr/share/gnome-shell/gnome-shell-theme.gresource) """ subprocess.run([ - "update-alternatives", "--quiet", "--remove", + "update-alternatives", "--remove", name, str(path) - ], check=True) + ], stdout=subprocess.DEVNULL, check=True) Console.Line().success(f"Removed {name} alternative.") \ No newline at end of file