Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 800653

Summary: dev-util/pycharm-professional markdown preview does not work due to file permissions
Product: Gentoo Linux Reporter: Mathy Vanvoorden <mathy>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, mscardovi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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}