爱意满满的作品展示区。
SimonOne

做了个 alfred 捷径,用来不输密码登录虚拟机里的 SAP GUI for Windows

  •  
  •   SimonOne · Jul 2, 2022 · 1610 views
    This topic created in 1408 days ago, the information mentioned may be changed or developed.

    前因

    因为工作原因,所以经常在 Parallels 虚拟机里使用 SAP GUI 。 但是 SAP GUI for Windows 750 至今逐渐开始不允许快捷方式记住密码了,770 某个补丁版本开始连手动在 sapshortcut.ini 填密码也不行了。

    为了能快速登录,我做了个 Alfred 的 Workflow 来进行快速登录。

    链接: https://github.com/hsingll/Alfred-SAP-Quick-Login

    效果预览

    QQ20220702-001504-HD

    必须条件

    安装 Alfred

    安装 Python2.7

    安装 Parallels Desktop

    Parallels Desktop 已安装 Windows 虚拟机

    Windows 虚拟机已安装 SAP GUI for Windows

    * 已使用旧的记住密码的方式配置了快捷方式,如: https://fenginfo.com/2270.html

    安装

    0.Windows 虚拟机中添加如下环境变量到 Path(重启才生效):

    C:\Program Files (x86)\SAP\FrontEnd\SAPgui
    

    1.下载 Releases

    2.导入 Alfred

    3.填写环境变量 shortcut_dir:SAP 的快捷方式文件 shortcut.ini 的绝对路径(这个我放在 macOS 里的,放虚拟机里我没查到怎么让 Alfred 读取到这个文件)

    4.填写环境变量 VM_UUID:安装了 SAP GUI for Windows 的虚拟机的 UUID

    可在 macOS 中运行下列命令查询:

    prlctl list
    

    使用

    0.Windows 虚拟机保持运行

    1.Alfred 指令:

    sap <关键字>(自动搜索 shortcut.ini 中的条目)
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   952 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 22:40 · PVG 06:40 · LAX 15:40 · JFK 18:40
    ♥ Do have faith in what you're doing.