V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Eymard
V2EX  ›  问与答

想给 mac 版的 chrome 加个启动参数结果悲剧了....

  •  
  •   Eymard · 2015-04-01 22:45:31 +08:00 · 4073 次点击
    这是一个创建于 3284 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不懂命令行百度之后按照这个网站改的: http://tools.yesky.com/257/11200757.shtml

    cd "/Applications/Google Chrome.app/Contents/MacOS/"
    
     sudo mv "Google Chrome" Google.real
    
     sudo printf '#!/bin/bash\ncd "/Applications/Google Chrome.app/Contents/MacOS"\n"/Applications/Google Chrome.app/Contents/MacOS/Google.real" --enable-internal-flash "$@"\n' > Google\ Chrome
    
        sudo chmod u+x "Google Chrome"
    

    改完之后chrome就打不开了。。。有没有什么可以不重装。。再也不手贱的用什么sudo了。。。

    4 条回复    2015-04-02 10:05:06 +08:00
    ooxxcc
        1
    ooxxcc  
       2015-04-01 22:54:03 +08:00
    cd "/Applications/Google Chrome.app/Contents/MacOS/"
    sudo mv Google.real "Google Chrome"
    Eymard
        2
    Eymard  
    OP
       2015-04-01 22:58:41 +08:00
    @ooxxcc 还是打不开。。。
    Puteulanus
        3
    Puteulanus  
       2015-04-01 23:13:42 +08:00
    就是把主程序移到一边,新建了个脚本然后加了个可执行
    你把Google.real名字改回来就行了。。
    ooxxcc
        4
    ooxxcc  
       2015-04-02 10:05:06 +08:00
    重装吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1402 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.