Open ambrop72 opened 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
Are the absolute paths in *.desktop good for anything? What if we had a hook that converts them to name-only?
triage: what’s the status?
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
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:
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.