This actually comes from xorg's package hook. I guess there's no way around having $DISPLAY set for some commands, but maybe it can be quiesced a bit. Something like this, perhaps:
if os.environ.get('DISPLAY'):
# do commands which need $DISPLAY
# do commands which don't need $DISPLAY
This actually comes from xorg's package hook. I guess there's no way around having $DISPLAY set for some commands, but maybe it can be quiesced a bit. Something like this, perhaps:
if os.environ. get('DISPLAY' ):
# do commands which need $DISPLAY
# do commands which don't need $DISPLAY