I have an application that I'd like to execute with some configs that get calculated at runtime. To achieve this, I can simply use an alias and it works fine, the problem is that the executable itself is still there of course, so if I launch the application from a .desktop file, or a shortcut, or anywhere else that isn't the terminal, then the alias is not set, and I lose this ability.
I thought about the possibility of just moving the executable somewhere else, and then replacing it with a shell script that runs it how I want. The problem with this solution is that an update would probably overwrite it, so it's not something I can really do.
Any suggestions? I'd basically like to transform how the executable is ran globally, in the whole session.
I'm currently on Arch Linux KDE.