Xdg-open QDesktopServices.openUrl(QUrl.fromLocalFile(file_path) wont open the file BUG!

QDesktopServices.openUrl(QUrl.fromLocalFile(file_path)) is not opening in snap core20, it is working fine in core18.

I know many of you raised this bug, i don’t find any solution yet. please assist me if anybody has solved this issue for core20 . For core18 it is working absolutely fine.

I am using python3-pyqt5 package with python3

Output: There is no such error it gives. its just not working.

System details:
snap    2.54.3
snapd   2.54.3
series  16
ubuntu  20.04
kernel  5.13.0-28-generic