diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-27 17:40:32 -0600 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-27 17:40:32 -0600 |
| commit | a4877bbf71e39ada18fc602401765e9a4a5d405e (patch) | |
| tree | c3204adffff9b4e1a9b9013724750dae4ee877f0 /src | |
| parent | 338af8653223b2505ebb9a5df0e69ff275d17af7 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/src/nxmhandler_linux.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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" |
