From 5754f9964ef1edbd3a1ff71286e1217d617f5fb2 Mon Sep 17 00:00:00 2001 From: Dolphin Oracle Date: Mon, 30 Dec 2024 15:55:02 -0500 Subject: [PATCH] don't launch mxpi as root --- debian/changelog | 7 +++++++ lib/modules/apt-notifier.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index f765c83..3f9e410 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt-notifier (24.12.01) mx; urgency=medium + + * do not launch mxpi as root + * fixes bug 828 + + -- Dolphin Oracle Mon, 30 Dec 2024 15:54:13 -0500 + apt-notifier (24.09.01) mx; urgency=medium * Fix: Close only current window with clicking on [x], not MX Updater. diff --git a/lib/modules/apt-notifier.py b/lib/modules/apt-notifier.py index e93283d..d845d63 100644 --- a/lib/modules/apt-notifier.py +++ b/lib/modules/apt-notifier.py @@ -910,12 +910,12 @@ def start_package_installer(): cleanup_notifier_run() # find usable package installer - pl = "mxpi-launcher mx-packageinstaller packageinstaller" + pl = "mx-packageinstaller packageinstaller" from shutil import which package_installer = list(filter( lambda x: which(x), pl.split()))[0] if not package_installer: return - if "mxpi-launcher" in package_installer: + if "mx-packageinstaller" in package_installer: cmd = package_installer else: cmd = f"su-to-root -X -c {package_installer}"