When is a book placed on a desk pushed onto the right, in which direction will the force of friction act?
It will act towards left.
The force of friction always opposes the relative motion. If you apply the force along the left, friction acts along the right direction. If you apply the force along the right, the friction acts along the left direction.