From db1e87010bb39d1f2d603009db0aed08782a3c87 Mon Sep 17 00:00:00 2001 From: Michael Pobega Date: Sun, 14 Jun 2026 20:38:27 -0400 Subject: [PATCH] add NextUI detection for TrimUI OS warnings --- PortMaster/pylibs/pugscene.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PortMaster/pylibs/pugscene.py b/PortMaster/pylibs/pugscene.py index 58fe6f0..6082599 100644 --- a/PortMaster/pylibs/pugscene.py +++ b/PortMaster/pylibs/pugscene.py @@ -42,7 +42,13 @@ def get_startup_warnings(device_info): except (OSError, UnicodeDecodeError): pass - # TODO: add checks for NextUI, PakUI when we have unique markers + try: + if 'NextUI' in Path('/mnt/SDCARD/.system/version.txt').read_text(): + warnings.append(('nextui', _('NextUI is not supported by PortMaster.'), firmware_suggestion)) + except (OSError, UnicodeDecodeError): + pass + + # TODO: add a check for PakUI when we have a unique marker # Generic catch-all for TrimUI-based OSes we can't identify specifically if not warnings and Path('/etc/trimui_device.txt').exists():