NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.38k stars 14.33k forks source link

Nexusmods-app doesn't create .desktop file #359833

Closed ShadowReaper420 closed 1 day ago

ShadowReaper420 commented 2 days ago

Describe the bug

Hi, After installing Nexusmods-app from nixpkgs I am unable to run it from my app launcher or terminal.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install the package
  2. Check your app launcher
  3. It's not there....

Expected behavior

For there to be a .desktop file and to able to launch the app

Metadata


 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.52, NixOS, 24.11 (Vicuna), 24.11.20240926.1925c60`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.7`
 - nixpkgs: `/nix/store/fpivx4sjcp2vk4rp9nhliln5cwcp3kc6-source`

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

ShadowReaper420 commented 2 days ago

Okay idk why the maintainer ping got deleted but whatever @MattSturgeon

MattSturgeon commented 2 days ago

Have you ever had the nexusmods app installed before? Or has it been updated recently?

Currently they make breaking changes every update, so if there is any existing config left over from running the app in the past it will cause it to crash with no user-facing error message.

See Why do I have to uninstall everything to update the app?.

This shouldn't affect whether it has a desktop entry though.


For the desktop entry, have you tried refreshing the desktop entry database? This is done using update-desktop-database which is in the desktop-file-utils package. Alternatively, restarting or re-logging in should also work.

ShadowReaper420 commented 2 days ago

This is my first time installing nexusmods app, yes I rebuilt after adding it to my config, yes i rebooted after rebuild, no I am not installing it with home-manager, no there is no symlink in "/var/run/current-system/sw/share/applications/" also sorry for the late replay I was at dinner for the day.

MattSturgeon commented 1 day ago

I just double checked by installing into my nixos config and I'm unable to reproduce the issue on my end.

Details

If I add `environment.systemPackages = [ pkgs.nexusmods-app ]` to my nixos config and run `nixos-rebuild switch`, the desktop entry shows up and correctly launches the program. It can be found in current-system: ```sh $ realpath /var/run/current-system/sw/share/applications/com.nexusmods.app.desktop /nix/store/7ccpwslwpnig1gfz99mbsq946bzb9vi9-nexusmods-app-0.6.3/share/applications/com.nexusmods.app.desktop ```

host os: Linux 6.6.52, NixOS, 24.11 (Vicuna), 24.11.20240926.1925c60

Your nixos version seems a little old (20240926, so 26th of September), for reference mine is 25.05.20241119.23e89b7 (19th of November).

Does updating your flake lock and/or channels resolve the issue?