如何在不弹出终端窗口的情况下打开符号链接?

发布于 2024-09-25 02:35:30 字数 1459 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感情废物 2024-10-02 02:35:30

为什么不直接创建一个 HFS+ 别名呢? Command-Option-将 iTunes 应用程序拖动到计算机上您想要的任何位置,它应该按照您想要的方式工作。

Why not just make an HFS+ alias? Command-option-drag the iTunes app anywhere you want on your machine, and it should work like you want it to.

花开柳相依 2024-10-02 02:35:30

我刚刚找到了一个解决方案:

制作一个可执行文件(作为链接)

#!/bin/bash
cd /Applications/iTunes.app/Contents/MacOS
nohup ./iTunesX &
exit

并在终端的首选项下进行更改

当 shell 退出时:如果 shell 完全退出则关闭

将 iTunesX 和 cd 路径更改为任何所需目标。

I just figured out a solution:

Make an executable (intended as the link)

#!/bin/bash
cd /Applications/iTunes.app/Contents/MacOS
nohup ./iTunesX &
exit

and change under preferences in Terminal

When the shell quits: close if the shell exited cleanly

Change iTunesX and the cd path to any desired target.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文