Chrome 多用户问题

2019-01-30 21:25:32 +08:00
 mafeifan
请教 chrome 的相关问题
1. 我现在有两个 chrome 用户,一个日常使用,一个工作使用,怎么快速切换,网上搜到的方法是 shift+command+M
然后 tab 选择用户切换,还有更快的方法吗
2. 在 dock 中点击 chrome,每次打开的窗口都是非用户登录的新窗口,包括程序启动,该怎么改呢
1933 次点击
所在节点    macOS
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/531981

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX