bash -i -c 起什么作用?

bash -i -c 起什么作用?

我想使用 PyCharm 运行 ROS,但我必须修改桌面文件jetbrains-pycharm-ce.desktop

Exec="/opt/pycharm-community-4.0.4/bin/pycharm.sh" %f

到:

Exec=bash -i -c "/opt/pycharm-community-4.0.4/bin/pycharm.sh" %f

我想知道 bash -i -c 正在做什么,因为我不想为未来的项目改变 PyCharm。

答案1

man bash

-i        If the -i option is present, the shell is interactive.

-c command
          command  is  executed in a subshell environment, and its
          output is used as the possible completions.

相关内容