Desire is an attempt to perform certain action.
The instructions on how to perform the desired action are found in what is known as procedural memory.
Desire leads to performance of some sort which is then compared to the corresponding procedural memory in order to determine success/failure.
This is communicated to us through the sense of consonance/dissonance.
We tend to have zero conscious awareness of the underlying procedural memory and very superficial awareness of the action that is performed.
This is not a problem because sense of consonance/dissonance is all we need.
Based on this sense alone, we can decide whether to restrain ourselves or to proceed.
Truth refers to a relation between what we wanted to do and what we actually did, expressed as a degree of dissonance.
Accepting truth, when it indicates considerable degree of dissonance, necessitates adjustment of our desires.
In this sense, desires are subordinate to truth.
Not the other way around.