You can remember the meaning of 但愿 with this easy mnemonic:
If only you were telling the truth…but (但) I can tell you're not sincere (愿) at all.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.