【问题标题】:Starting Chromium with switches in file?使用文件中的开关启动 Chromium?
【发布时间】:2016-07-28 16:41:49
【问题描述】:

我在 linux 上运行 chromium,需要找到一种方法将所有启动标志放入文件中,而不是通过启动命令推送它们

例如: chromium --disable-pinch --disable-sync http://URL

有没有办法在配置文件或其他东西中包含这些标志或“开关”,以便可以在中心位置添加和删除标志。

任何提示或解决方案将不胜感激。

【问题讨论】:

    标签: linux chromium


    【解决方案1】:

    执行此操作的经典方法是创建一个简单的 shell 脚本,例如 chromium-custom.sh:

    #!/bin/sh
    chromium --disable-pinch --disable-sync "$@"
    

    然后

    chmod +x chromium-custom.sh
    ./chromium-custom.sh --extra-parameter http://URL
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-21
      • 2021-08-24
      • 2021-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多