ebkr / r2modmanPlus

A simple and easy to use mod manager for several games using Thunderstore
MIT License
1.17k stars 184 forks source link

[BUG] - application inserts mimetype associations in user's mimeapps preferences instead of appending #1366

Open corigne opened 2 months ago

corigne commented 2 months ago

Describe the bug r2modman inserts its desktop file as the first entry in mimeapps.list for x-scheme-handler/https and others on start, even if another application already exists for this entry (e.g. firefox.desktop), ideally this should be appended to avoid overwriting existing user preferences

To Reproduce Steps to reproduce the behavior:

  1. Set default browser using mimeo or by hand
  2. open an http link, default browser opens a new tab to that lnk
  3. open r2modman
  4. open the same http link, r2modman flashes briefly, nothing opens in the default browser

Expected behavior r2modman should append, not insert mimeapps entries for mimetypoes that it doesn't explicitly own, respecting existing mimeapp preferences

Screenshots n/a

Additional context system info: OS: Arch Linux x86_64 Kernel: Linux 6.9.4-arch1-1 WM: i3 (X11) CPU: AMD Ryzen 7 3800X (16) @ 4.20 GHz GPU: NVIDIA GeForce RTX 2070 SUPER [Discrete] Locale: en_US.UTF-8

corigne commented 2 weeks ago

I really would love to be able to help troubleshoot this but I'm not really sure where to start.

corigne commented 2 weeks ago

I ended up back here after running into an identical issue with obsidian.md I traced the issue back to mimeo, with the help of another user. Uninstalling mimeo appears to have resolved this on my laptop. Will check on my desktop tomorrow and confirm, closing the ticket if necessary.