In case the environment variable XGDVI_DEBUG_LPR is defined (any value will do), the print system of xgdvi never executed print commands.
XGDVI_DEBUG_LPR