I'm writing a script using zenity. But zenity 3.4.0 has a bug (has been fixed in latest Ubuntu versions), it returns exit code 139 instead of 0 or 1. But I need to use it in scenarios where the bug is still there.
So the solution is to bundle a custom zenity executable. But how can I override the zenity command with my custom one in the script?