Eymard
V2EX  ›  问与答

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

  •  
  •   Eymard · Apr 1, 2015 · 4650 views
    This topic created in 4152 days ago, the information mentioned may be changed or developed.

    不懂命令行百度之后按照这个网站改的: 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 replies    2015-04-02 10:05:06 +08:00
    47jm9ozp
        1
    47jm9ozp  
       Apr 1, 2015
    cd "/Applications/Google Chrome.app/Contents/MacOS/"
    sudo mv Google.real "Google Chrome"
    Eymard
        2
    Eymard  
    OP
       Apr 1, 2015
    @ooxxcc 还是打不开。。。
    Puteulanus
        3
    Puteulanus  
       Apr 1, 2015
    就是把主程序移到一边,新建了个脚本然后加了个可执行
    你把Google.real名字改回来就行了。。
    47jm9ozp
        4
    47jm9ozp  
       Apr 2, 2015
    重装吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5040 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 03:52 · PVG 11:52 · LAX 20:52 · JFK 23:52
    ♥ Do have faith in what you're doing.