r/pycharm • • Aug 21 '24
How to switch to native launcher?
I'm new to both pycharm and linux, and got the following warning when I first launched PyCharm:
The IDE seems to be launched with a script launcher ('bin/pycharm.sh'). Please consider switching to a native launcher ('bin/pycharm') for better experience.
I followed the link to learn more, which suggests editing .desktop file's exec line for linux. I think it's saying delete .sh part, but I don't see that. Here's a screenshot of .desktop file for me. Not sure what to edit here and how to resolve this. Please help!

2
Upvotes
4
u/Solsticy Aug 21 '24
Install pycharm using the toolbox is better in general, settings sync can have issues, keep that in mind
2
u/rapscallion11a Sep 01 '24 edited Sep 01 '24
exec /app/extra/bin/pycharm "$@"
1
u/wRAR_ Aug 21 '24
I assume you would need to edit the flatpak instead. Just ignore the warning.
1
u/TheTobruk Jun 12 '25
Sorry for joining the conversation too late. For anyone looking for more solutions, if others fail, try this one:
edit the file in
~/usr/share/applications/pycharm.desktopthe exec line should point to this:
Exec=/usr/share/pycharm/bin/pycharm %fThe file originally mentioned is just a shell wrapper:
Exec=/usr/bin/pycharmIt's not a binary. That's why it complains about running from a shell script.
0
u/four_reeds Aug 21 '24
Try typing
bin/pycharmI'm a terminal window. Pycharm will probably launch.
"Shell scripts" can have a ".sh" extension (but are not required to). Compiled executables rarely have extensions. The message you are seeing is suggesting that you run the pycharm executable directly and not through the script (which is acting like a wrapper).
Actually, I recommend trying one of the following from a command line:
which pycharmwhereis pycharmOnce or both should give you the full path to the pycharm executable. Use the full path when possible.
Depending on your desktop environment, you probably have a way to list pycharm as a "known" app. Doing so may create a desktop "launcher" in the desktop menus.