Ensure that the DRI_PRIME environment variable is also set for froked subprocesses.