删除并行绑定到命令行打开应用程序命令 [英] remove parallels binding to a command line open app command

查看:61
本文介绍了删除并行绑定到命令行打开应用程序命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用命令行打开禁用安全性的 google chrome mac

I'm trying to open google chrome mac with disabled security with the command line

open -a Google\ Chrome --args --disable-web-security

但是它一直打开并行窗口 chrome - 如何删除 chrome 的并行绑定,以便它不会从 mac 终端打开?

However it keeps opening up parallels windows chrome instead - how do I remove the parallels binding for chrome so that it doesn't open from mac terminal?

推荐答案

使用应用程序的完整路径:

Use the full path to the application:

open -a /Applications/Google\ Chrome --args --disable-web-security

Parallels 在 ~/Applications 中为每个虚拟机创建文件夹.这些文件夹包含虚拟机上应用程序的别名.我的猜测是命令open -a"在搜索文件夹/Applications 之前正在搜索文件夹 ~/Applications.在许多情况下,这可能是所需的行为 - open 会先找到为用户安装的应用程序,然后再找到系统范围内安装的应用程序.然而,它在这种情况下引起了一些混乱.

Parallels creates folders in ~/Applications for each virtual machine. These folders contain aliases for applications on the virtual machine. My guess is that the command "open -a" is searching the folder ~/Applications before searching the folder /Applications. This is probably desired behavior in many cases - open would find the application installed for the user before finding the application installed system-wide. However, it's causing some confusion in this case.

我找不到解释open"实际在搜索哪条路径的文档,所以这只是一个猜测.但是,指定应用程序的完整路径对我有用.

I couldn't find documentation explaining which path "open" is actually searching, so this is just a guess. However, specifying the full path to the application works for me.

这篇关于删除并行绑定到命令行打开应用程序命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆