V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
mafeifan
V2EX  ›  macOS

Chrome 多用户问题

  •  
  •   mafeifan · 2019-01-30 21:25:32 +08:00 · 1931 次点击
    这是一个创建于 1904 天前的主题,其中的信息可能已经有所发展或是发生改变。
    请教 chrome 的相关问题
    1. 我现在有两个 chrome 用户,一个日常使用,一个工作使用,怎么快速切换,网上搜到的方法是 shift+command+M
    然后 tab 选择用户切换,还有更快的方法吗
    2. 在 dock 中点击 chrome,每次打开的窗口都是非用户登录的新窗口,包括程序启动,该怎么改呢
    1 条回复    2019-02-28 12:22:34 +08:00
    nyanyh
        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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5344 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:44 · PVG 13:44 · LAX 22:44 · JFK 01:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.