rockerbacon / modorganizer2-linux-installer

An easy-to-use Mod Organizer 2 installer for Linux
GNU General Public License v3.0
989 stars 79 forks source link

NXM Links not associating with MO2 #673

Open GodPhase777 opened 4 months ago

GodPhase777 commented 4 months ago

NXM links when clicked do nothing. It seems to not be interacting with MO2 at all. Update: It asks which app I want to use for it, but nothing related to my MO2 install pops up, and associating it with nxm links in the mod manager does nothing.

jambombs24 commented 4 months ago

I also have this same issue. MO2 states that it is connected to Nexus, and it's associated with NXM links.

I'm using 5.0.3 of this installer and Pop!_OS 22.04.

holdenretriever commented 3 months ago

I also have the same issue; following from a reply in #92, is it possible that you could do the following and paste the output?:

Try to download a mod on Nexus. On the final page you'll see a message "if you are having trouble, click here to download manually", copy that link and run this command:

$ xdg-open 'paste link inside the quotes'

Doing this I get an output of

"$@"': -c: line 1: unexpected EOF while looking for matching `''

I am also using release 5.0.3, on Arch.

hawari21 commented 3 months ago

Same here but my message like this : io: nxm://fallout4/mods/47327/files/191018?key=RYXiruOXF6fJY14MTz0mpw: The specified location is not supported

I using STL version tho.

tkd-drums-bass commented 2 months ago

My 2 cents worth from Ubuntu 24.04: I added my API key to MO2 for Skyrim, attempted a mod download, then the following error dialogue was displayed.

Fair enough, but what app do I need? I'm not having any luck finding anything on the web.

image

I forgot to add this: ( I need more coffee ) image

farelmapm commented 1 month ago

I have tried with 3 browsers so far, Zen (Firefox based), Brave (Chromium based), and Chromium. The protocol handler works fine with Zen but this issue happens with both Brave and Chromium. So possibly it's an issue with Chromium?

Edit: Tried it with Firefox, it worked perfectly. I think there's definitely something going on with how Chromium handles the protocol or how it maybe sends the url to the argument. For reference I'm using Arch Linux with this installer version 5.0.3.

In comparison, executing the bash script directly like: bash -c '"$HOME/.local/share/modorganizer2/modorganizer2-nxm-broker.sh" "$@"' "$HOME/.local/share/modorganizer2/modorganizer2-nxm-broker.sh" "<link>" Successfully triggers the handler and MO2 handles the download as expected.

farelmapm commented 1 month ago

Personally I found a workaround on Arch. If xdg-open "<link>" outputs "$@"': -c: line 1: unexpected EOF while looking for matching'', you can change the Exec parameter in ~/.local/share/applications/modorganizer2-nxm-handler.desktop to

[Desktop Entry] Type=Application Categories=Game; Exec=/home/_YOURUSER/.local/share/modorganizer2/modorganizer2-nxm-broker.sh Name=Mod Organizer 2 NXM Handler MimeType=x-scheme-handler/nxm; NoDisplay=true

fixes the issue.

Gronglegrowth commented 1 month ago

I am also experiencing this. When I attempted to change the Exec parameter as the previous comment by farelmapm describes, the error dialog no longer displays but, nothing actually seems to get downloaded. I also use Arch, and also installed with the 5.0.3 version.

farelmapm commented 2 days ago

@Gronglegrowth Try appending %u at the end of exec

[Desktop Entry]
Type=Application
Categories=Game;
Exec=/home/YOUR_USER/.local/share/modorganizer2/modorganizer2-nxm-broker.sh %u
Name=Mod Organizer 2 NXM Handler
MimeType=x-scheme-handler/nxm;
NoDisplay=true