QDesktopServices::openUrl error linux
-
Hello.
I have the following code:
void foo(const QUrl &url) { QDesktopServices::openUrl(url); } // ... foo(QUrl("https://www.google.com/"));
On Windows it works just fine, but in case of running it on Linux Ubuntu 20.04.5 LTS it results in such an error:
XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so: /lib/x86_64-linux-gnu/libgdk-3.so.0: undefined symbol: XmbSetWMProperties Couldn't load XPCOM.
I thought it may be an issue with Firefox and tested it with Chrome (made it the default browser), but I get a similar error:
/usr/bin/google-chrome-stable: symbol lookup error: /usr/bin/google-chrome-stable: undefined symbol: Xutf8TextPropertyToTextList