使用Chrome浏览器命令将pgAdmin 4作为独立应用程序启动 [英] Launch pgAdmin 4 as a standalone app using chrome browser commands

查看:87
本文介绍了使用Chrome浏览器命令将pgAdmin 4作为独立应用程序启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在将pgAdmin 4用作Web应用程序存在严重问题,必须在浏览器中的许多其他选项卡旁边使用它.我希望它是一个独立的应用程序,可以将其固定到任务栏上,依此类推.使用新的Chrome版本,可以为Web应用程序创建快捷方式,最后将其固定到任务栏上并在其自己的窗口中运行.但是仍然存在一个问题.首次启动pgAdmin4时,它似乎创建了一个令牌,该令牌由?key参数传递给浏览器:

问题是:

Chrome应用程序/快捷方式当然是在没有?key参数的情况下保存的,因此无法创建cookie,也不会自动生成.有人知道我如何通过浏览器命令或其他任何解决方法传递密钥?

解决方案

只是发现您必须添加此命令行才能将密钥传递给chrome应用程序:

"C:\ Program Files(x86)\ Google \ Chrome \ Application \ chrome.exe" --app =%URL%

I have a serious problem with pgAdmin 4 being a web application right now which I have to use in my browser next to many other tabs. I want it to be a standalone application which I can pin to my taskbar and so on. With new Chrome versions it is possible to create a shortcut for the web application and finally pin it to a taskbar and run in its own window. But there is still a problem. When pgAdmin4 first launches, it seems to create a token which is passed by the ?key parameter to the browser:

http://127.0.0.1:12345/?key=6d2ed64a-a684-4503-beeb-06074d6263b3

When I now save this browser tab as an application I can add it in the pgAdmin 4 settings as a browser command:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory=Default --app-id=hfdebdmclblkieoihljjpjjamgmknckn

The problem is:

The chrome application/shortcut was, of course, saved without the ?key parameter and therefore can't create the cookie and is not autorized. Someone has an idea how I can pass the key with the browser command or any other workaround?

解决方案

Just found out you have to add this command line to pass the key to the chrome app:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=%URL%

这篇关于使用Chrome浏览器命令将pgAdmin 4作为独立应用程序启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆