Wrappers and hooks: do not invoke wrapProgram directly

wrapQtAppsHook populates qtWrapperArgs with the appropriate arguments to wrapProgram. I cribbed that from wrapGAppsHook, which does something similar. So, I think we are not far off from what @FRidh suggests. We will also want a way to set the arguments to wrapProgram per-target. I originally wanted to do something like this when I introduced wrapQtAppsHook. The scope of the change was much larger than my appetite, so I abandoned that aspect of it, but not before wasting a lot of time trying and failing to do it right.

1 Like