NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.64k stars 13.8k forks source link

Problems with desktop environments copying .desktop files #11471

Open ambrop72 opened 8 years ago

ambrop72 commented 8 years ago

Some desktop environments will copy a .desktop file to a local directory when the user transfers a shortcut to some place, for example to the desktop, to the panel or to the favorites. This happens with both KDE4 and Xfce. While the shortcuts which refer to the program by name only will be okay, those which specify the absolute path to the executable will still refer to the old application and will be broken when a GC deletes the old application.

Ideally the system would establish some kind of reference when transferring the shortcut, rather than create a literal copy of the .desktop file.

mogorman commented 8 years ago

I don't think this is fixable unless we changed .desktop files to link to current-system instead of their full nix paths

vcunat commented 8 years ago

Are the absolute paths in *.desktop good for anything? What if we had a hook that converts them to name-only?

Profpatsch commented 6 years ago

triage: what’s the status?

matthewbauer commented 5 years ago

Are the absolute paths in *.desktop good for anything? What if we had a hook that converts them to name-only?

We now have a PR that goes the other way! It converts the name-only ones to absolute path: https://github.com/NixOS/nixpkgs/pull/68035

stale[bot] commented 4 years ago

Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on irc.freenode.net.