1.pgadmin4 to run in server mode always (done by adding config)
2. pgadmin4 to have automatic login when running as server.
For 2, I took a look at the code inside in /web dir, it should be possible to make a change in the routing logic to have server take "DESKTOP_USER" credentials. I can't tell exactly where to make this change though.