From 7133cf6308fb5c1c156bae9f182a1dafcb11f715 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Wed, 13 May 2026 21:33:41 -0500 Subject: nxm: stop launcher .desktop from claiming nxm:// + clear stale portal pick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Fluorine Manager launcher .desktop declared MimeType=x-scheme-handler/nxm;x-scheme-handler/modl;, advertising itself as a handler alongside the real mo2-nxm-handler.desktop. The launcher's Exec line has no %u, so when xdg-desktop-portal launched it the URL was dropped and MO2 came up with no args — which then hit the "instance already running" path against the live primary. Drop the bad MimeType from both the tarball template (data/icons/) and the .bin installer's inline desktop entry in docker/build-inner.sh. That alone fixes new installs, but xdg-desktop-portal remembers user picks in its permission store: anyone who'd already selected Fluorine Manager in the chooser dialog had it stuck as their always-use app (count=3/3 = silent always-launch), and the bad pick survived removing the MimeType. On startup the nxm handler now fires a DBus DeletePermission against PermissionStore for com.fluorine.manager on both schemes, so existing users self-heal on the next launch. The call is fire-and-forget — a missing entry is the expected steady state. Co-Authored-By: Claude Opus 4.7 (1M context) --- data/icons/com.fluorine.manager.desktop | 1 - 1 file changed, 1 deletion(-) (limited to 'data') diff --git a/data/icons/com.fluorine.manager.desktop b/data/icons/com.fluorine.manager.desktop index 5d85cf8..fbe4d30 100644 --- a/data/icons/com.fluorine.manager.desktop +++ b/data/icons/com.fluorine.manager.desktop @@ -8,7 +8,6 @@ Icon=com.fluorine.manager Terminal=false Categories=Game;Utility; Keywords=mod;organizer;modding;skyrim;fallout; -MimeType=x-scheme-handler/nxm;x-scheme-handler/modl; Actions=create-portable;list-instances; [Desktop Action create-portable] -- cgit v1.3.1