While I was developing the Pull Request https://codeberg.org/dnkl/foot/pulls/2259, I noticed that here the term_spawn_new function launches foot by default found in PATH and not the real executable that launched the first instance of foot.
In this commit, I identify the full path of the foot binary by reading the content of /proc/self/exe. Is this method suitable?
Signed-off-by: Stéphane Klein contact@stephane-klein.info
While I was developing the Pull Request <https://codeberg.org/dnkl/foot/pulls/2259>, I noticed that [here](https://codeberg.org/dnkl/foot/src/commit/b78cc92322dd2ae431dbbb70bc681b4d603d844d/terminal.c#L3805) the `term_spawn_new` function launches `foot` by default found in `PATH` and not the real executable that launched the first instance of `foot`.
In this commit, I identify the full path of the foot binary by reading the content of `/proc/self/exe`. Is this method suitable?
Signed-off-by: Stéphane Klein <contact@stephane-klein.info>