From a4877bbf71e39ada18fc602401765e9a4a5d405e Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Fri, 27 Feb 2026 17:40:32 -0600 Subject: Fix NXM handler: use absolute path in desktop file Exec line The desktop file used a bare command name (mo2-nxm-handler) which relies on ~/.local/bin being in PATH. When the browser or desktop environment invokes the URL scheme handler, ~/.local/bin is often not in PATH, so the handler silently fails. Use the full absolute path to the wrapper script instead. Co-Authored-By: Claude Opus 4.6 --- src/src/nxmhandler_linux.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/nxmhandler_linux.cpp b/src/src/nxmhandler_linux.cpp index 3e18658..fbf94d7 100644 --- a/src/src/nxmhandler_linux.cpp +++ b/src/src/nxmhandler_linux.cpp @@ -220,7 +220,9 @@ void NxmHandlerLinux::registerHandler() const QFileDevice::ExeGroup | QFileDevice::ReadOther | QFileDevice::ExeOther); - const QString execLine = "mo2-nxm-handler nxm-handle %u"; + // Use the absolute path — ~/.local/bin is often not in PATH when the + // browser or desktop environment invokes the URL scheme handler. + const QString execLine = wrapperPath + " nxm-handle %u"; const QString desktopPath = appsDir + "/mo2-nxm-handler.desktop"; const QString desktop = QString("[Desktop Entry]\n" -- cgit v1.3.1