1

I have installed pycharm via flatpak on linux Mint 21.1. I want to open every .py file in the PyCharm application. But when I right click and choose "open with other application" PyCharm is not on the list.

How can I set PyCharm to be default app for .py files ?

Thank you for help


EDIT:

I found .desktop file in /home/kacka/.local/share/applications/userapp-com.jetbrains.PyCharm-Professional.desktop-95N5X1.desktop but when I try to set it up I get this: screenshot

5
  • 1
    How do you open PyCharm? by clicking on an icon (using a desktop file)? Jan 10 at 20:11
  • I open it using menu in the desktop dock. I pres "win" key a then write down "pycharm" Jan 10 at 20:33
  • 1
    I believe you are using a desktop file and therefore it should appear in the list of apps when you select: "open with other application". Run these commands and show what you get: find ~/.local/share/applications -iname "*pycharm*" and find /usr/share/applications -iname "*pycharm*" Jan 10 at 20:45
  • 1
    Also try this: find /var/lib/flatpak -iname "*pycharm*.desktop" (if you don't get any output from previous commands) Jan 10 at 21:11
  • @EdgarMagallon I have edited my question with more information Jan 10 at 21:33

1 Answer 1

0

Solution was to go to:

/var/lib/flatpak/exports/bin/

where I found this:

lrwxrwxrwx 1 root root  105 Jan  7 13:28 com.jetbrains.PyCharm-Professional -> ../../app/com.jetbrains.PyCharm-Professional/current/active/export/bin/com.jetbrains.PyCharm-Professional

So I set up default aplication to:

/var/lib/flatpak/exports/bin/com.jetbrains.PyCharm-Professional

and now it works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.