The following code should find the correct Desktop location even if OneDrive backup is enabled (after importing QStandardPaths from qt.core).
Code:
desktop_path = QStandardPaths.writableLocation(QStandardPaths.DesktopLocation)
That's what the documentation claims anyway.