gpt4 book ai didi

linux - 使用终端命令在 chrome 中设置主页

转载 作者:太空宇宙 更新时间:2023-11-04 12:08:59 25 4
gpt4 key购买 nike

我需要在登录 Debian 8.0 后立即打开一个 chrome 浏览器(全屏 + localhost:8080),我可以使用以下命令部分地实现相同的目的-

#!/bin/bash
sensible-browser 127.0.0.1:8080 ---- this opens the browser with the URL

sensible-browser --kiosk 127.0.0.1:8080 ---- this opens the browser in full screen but not with the URL

我正在考虑替代方法,如果我可以使用命令设置浏览器默认页面,那么上面的行可以全屏打开浏览器,但不知道该怎么做。

请帮忙。提前致谢!

最佳答案

此行为是由于 sensible-browser 命令造成的。如果您查看脚本内部(可能位于 /usr/bin/sensible-browser),您可能会发现该脚本仅采用第一个参数。

您可以通过运行通常名为 google-chrome 的 Chrome 可执行文件来获得预期的行为。

google-chrome '127.0.0.1:8000' --kioskgoogle-chrome --kiosk '127.0.0.1:8000' 都可以正常工作。

关于linux - 使用终端命令在 chrome 中设置主页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49627711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com