Wouldnt really call it desperate, more like they just realise their reality now. Bridges have been burnt with the West. China are wary of getting too comfortable with Russia, and although willing to do business when it benefits them, they have their own agenda. At the moment they benefit greatly from open trade with the West, and I would think they would very much like it to carry on. Although this is very much teetering in the balance with Taiwan situation getting dicey.
So as far a Russia is concerned, it makes sense to team up with other Pariah states, enemy of my enemy is my friend. Any nation willing to support them legitimizes their current course of action in their eyes I would assume.
As much as I completely detest the thought of appeasing aggressive nations, I think the West seriously need to keep China onside, if things go the same way in Taiwan as they have done in Ukraine, things will get very very uncomfortable throughout the world. Globalisation whilst a great project in an ideal world only works when everyone is on the same page or at least willing to work together. We have left ourselves vulnerable by lulling ourselves into a false sense of security over the past 30+ years.