Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pycharm shortcut problem #148

Open
rusanpas opened this issue Apr 14, 2022 · 3 comments
Open

Pycharm shortcut problem #148

rusanpas opened this issue Apr 14, 2022 · 3 comments

Comments

@rusanpas
Copy link

Hi

I have pycharm installed on my ubuntu distribution and when I run it from bash it works perfectly. To launch it I use the pycharm.sh available in the /bin folder of the pycharm installation. (/home/user/pycharm-community-2021.3.3/bin
pycharm.sh)

I have created a shortcut that runs the exactly same pycharm.sh.

When i launch the shortcut, It opens the program correctly, but the pycharm terminal does not have the correct environment variables (PATH...), and it cannot launch certain applications.

In addition, the pycharm terminal, by default, opens the project folder and in the pycharm opened from shortcut, It does not happen.

It seems that my user's bash session has not been executed. if I run "source ~/.profile", from the pycharm terminal, at least it fixes the path environment.

Any ideas or suggestions I can fix it?

@Pololot64
Copy link
Member

This is a good question. I'll think about it. The problem is that it is quite complicated to pass argument from python, through cmd, through bash. Alot gets mixed up. It is probably possible to add something to your shortcut command that runs it with the specific .profile in front of it.

@rusanpas
Copy link
Author

I tried to add "source ~/.profile" inside pycharm.sh with no results.

@Pololot64
Copy link
Member

Hm.. That is strange. Of course assuming that is where the environment variables are...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants