Closed almereyda closed 3 years ago
Maybe a bit dangerous? I can imagine situations in which this might lead to, well, unexpected results.
Let's identify the edge cases in advance and conceptually work around the expected errors: What could possibly go wrong?
A random application might claim that it wants to be sh
.
Two AppImages might claim that they want to be the same command name.
Users would have no obvious way of knowing which AppImage is reachable under what command name.
The more I think about it, the more I think is that it is better if users explicitly create symlinks if they so desire.
The developer of
wezterm
makes a good suggestion in the installation manual of the tool:After integrating an AppImage to the system, it's path and name are deterministically prescribed, why maintaining an
~/.local/appimaged/bin
mirror of symlinks to the managed, self-contained binaries, with adding them toPATH
may render the integration even more thorough, and e.g allow calling AppImages from scripts (respectingPATH
) or allow invoking command line tools and fitting them into pipelines more easy.A special case to consider would be the presence of AppImages trying to register the same binary/-ies. Then preference should be given to the highest version automatically.
Is there a way in the AppImage manifest to describe such binary/-ies, similar to
npm run
scripts?