Ptyxis : Manually set executables PATHs for container managers
Hi,
I use a distrobox executable installed in my .local/bin, which is not in the default PATH. Thus, Ptyxis cannot invoke distrobox. I think it would be a good thing to allow users to choose custom executable PATHs for distrobox/podman/toolbox in the user settings :
- Add a setting in the Behavior and in the Profiles sections, similar to "Use Custom Command" in "Profiles / / Shell" -> a switch button to activate a string field ;
- Use statics in the source code to define distrobox/podman/toolbox (let’s say distrobox from now for simplicity) commands ;
- When the setting is activated and filled, the static for the distrobox executable is replaced by whatever is in the field ;
I’m not a C expert but I guess it does not involve a huge change. I don’t see any security implications nor breaking changes. As for testing, I guess we could use something like which distrobox
to locate the executable and fill the corresponding static variable with the result and see how it performs.
Thanks for reading.