Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 800653 - dev-util/pycharm-professional markdown preview does not work due to file permissions
Summary: dev-util/pycharm-professional markdown preview does not work due to file perm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-05 13:19 UTC by Mathy Vanvoorden
Modified: 2022-03-13 02:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathy Vanvoorden 2021-07-05 13:19:17 UTC
As described here:

https://youtrack.jetbrains.com/issue/IDEA-248140#focus=Comments-27-4622292.0-0

The following files need to have executable permissions in order for Markdown preview (and possibly other functionality) to work:

/opt/pycharm-professional/jbr/lib/jcef_helper
/opt/pycharm-professional/jbr/lib/chrome-sandbox
/opt/pycharm-professional/jbr/lib/jexec
/opt/pycharm-professional/jbr/lib/jspawnhelper

If you open a project that has a markdown file currently open, it will try to load the preview, fail because of the permissions and PyCharm will crash. After changing these files to 755 permissions everything works ok.

Creating an issue rather than a quick PR to fix this because I'm not sure if there might be security implications.
Comment 1 Mathy Vanvoorden 2021-07-05 13:20:21 UTC
PS: other JetBrains tools are (probably) also suffering the same issue, haven't verified.
Comment 2 Ionen Wolkens gentoo-dev 2022-03-13 02:49:26 UTC
Seems this was fixed some time ago in:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b68efb6ec1f063f6451c24b21af0abfc165f3f5e

fperms 755 "${DIR}"/"${JRE_DIR}"/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}