Open yuuyins opened 2 years ago
I see how this could be annoying, but this isn't a use case for me, so I probably won't spend time on a fix.
In theory one could even install multiple versions of eclipse-platform
with different sets of plugins -- not sure how those could be disambiguated either.
i was wondering if, at least for the existing eclipse packages, would it be as easy as adding a ${pname} to the wrapper name and desktop item? i'll try experimenting with this later.
$ fd eclipse /run/current-system/sw/
/run/current-system/sw/bin/eclipse
/run/current-system/sw/share/applications/Eclipse.desktop
/run/current-system/sw/share/pixmaps/eclipse.xpm
Adding it to the wrapper name should be easy. I'm less certain about the desktop item. Happy to review a PR though! :)
Describe the bug
Installing multiple Eclipse packages leads to collisions and only one XDG desktop item available for app launchers that support XDG desktop items.
Steps To Reproduce
Steps to reproduce the behavior:
eclipses.eclipse-java
,eclipses.eclipse-modeling
,eclipses.eclipse-platform
.eclipse
binary is available to $PATH, and only one XDG desktop item will be shown by an app launcher like rofiExpected behavior
No collisions. Have different binaries available in $PATH for running for each package, e.g. eclipse-java, eclipse-modeling, eclipse-platform. Each with its desktop item having different values for the parameters.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/eclipse https://github.com/NixOS/nixpkgs/blob/fe8d073af7723da7b981c593e6b4399757aa1b0c/pkgs/applications/editors/eclipse/build-eclipse.nix#L41-L46 https://github.com/NixOS/nixpkgs/blob/fe8d073af7723da7b981c593e6b4399757aa1b0c/pkgs/applications/editors/eclipse/build-eclipse.nix#L10-L18 https://github.com/NixOS/nixpkgs/blob/fe8d073af7723da7b981c593e6b4399757aa1b0c/pkgs/applications/editors/eclipse/build-eclipse.nix#L48-L52
Notify maintainers
There's no meta.maitainers... So I'm @ according to git blame on the makewrapper and/or desktop item bits
@muradu @jerith666 @Nervengift @c0bw3b @rycee
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.