Skip to content

don't launch mxpi as root #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: MX21
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
apt-notifier (24.12.01) mx; urgency=medium

* do not launch mxpi as root
* fixes bug 828

-- Dolphin Oracle <[email protected]> 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.
Expand Down
4 changes: 2 additions & 2 deletions lib/modules/apt-notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down