What does bash -i -c do?

I would like to run ROS using PyCharm, but I have to modify the desktop file jetbrains-pycharm-ce.desktop from:

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

to:

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

I wonder what bash -i -c is doing because I do not want to alter PyCharm for future projects.

1 Answer

From 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.
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like