Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
PGADMIN4 Not Opening Browser
For some reason, I got it into my head, to build a developer environment on my Windows 10 PC. Following documentation I found on the web, I installed,
- Linux on windows
At first when I installed PGADMIN4, I received the following error messages:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-howard'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
I searched and found this fix: export QT_QPA_PLATFORM=''offscreen''
Now I receive the following messages:
Python path: "/usr/lib/python3/dist-packages"
Python Home: ""
Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py"
This plugin does not support QPlatformServices::openUrl() for 'http://127.0.0.1:56298/?key=d545e9ee-48f5-4f48-bfdf-f476d10fb757'.
This plugin does not support propagateSizeHints()
The interesting part is that when I cut and paste the url into a web browser on Windows, PGADMIN4 will open and work fine. It seems like the automated portion of the function transfer is not working.
As I have never worked in this type of environment before, I have no idea of what to change to fix the problem and no searches have provided me with any avenues to fix the problem.
I did find a work around by installing PGADMIN4 on the Windows side, creating a path and invoking the executable windows file from the console. But I'd still like to know what needs to be done to get PGADMIN4 to work as it is supposed to. Thank you
Hi and welcome to devnet,
Do you mean you are using the Linux Subsystem for Windows ?
If so, how did you install Qt ?
The offscreen module does indeed not implement openUrl. It has nothing to do with the validity of the URL itself.
As far as i know, Linux on windows does not come with an X server.
Which i think you need for the desktop runtime pgAdmin 4.
@SGaist Yes, you are correct, I am using the Linux Subsystem for Windows. I am not sure I actually installed QT as a standalone but as part of the pgadmin4 installation. I found the error messages and traced them to QT, so thought I would see if anybody here had an answer to my problem.
@mrjj Thank you, this seems to be the solution to the problem.