move prepExec to xdgutils.py