1
nyanyh 2019-02-28 12:22:34 +08:00
倒是可以给两个用户创建两个启动器
新建个文件夹 xxxx.app ,目录结构按照这个来 Resources 里是图标,随便找一个 run.sh 内容是 #!/bin/bash "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --profile="配置文件名" Info.plist 是 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleExecutable</key> <string>run.sh</string> <key>CFBundleIconFile</key> <string>shortcut.icns</string> <key>CFBundleInfoDictionaryVersion</key> <string>1.0</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1.0</string> </dict> </plist> 之后 chmod +x run.sh 加上执行权限,这个.app 就可以直接启动指定配置文件了,还可以固定到 Dock |