why hardcoded the icon path in desktop file?
Search Criteria
Package Details: pycharm-professional 2024.2.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/pycharm-professional.git (read-only, click to copy) |
---|---|
Package Base: | pycharm-professional |
Description: | Python IDE for Professional Developers. Professional Edition |
Upstream URL: | https://www.jetbrains.com/pycharm/ |
Keywords: | development editor ide jetbrains python |
Licenses: | custom |
Submitter: | hippojazz |
Maintainer: | Xavier (37h4n) |
Last Packager: | Xavier |
Votes: | 287 |
Popularity: | 1.22 |
First Submitted: | 2013-09-25 03:56 (UTC) |
Last Updated: | 2024-08-30 19:34 (UTC) |
Dependencies (19)
- cython (cython-gitAUR, cython0AUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- giflib (giflib-gitAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- libdbusmenu-glib
- python (python37AUR, python311AUR, python310AUR)
- python-setuptools
- sh (dashbinshAUR, bash-devel-static-gitAUR, bash-gitAUR, zshbinshAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash)
- ttf-font (neuropol-ttfAUR, ttf-win7-fontsAUR, ttf-ms-win8AUR, ttf-ms-win8-arabicAUR, ttf-ms-win8-hebrewAUR, ttf-ms-win8-seaAUR, ttf-ms-win8-indicAUR, ttf-ms-win8-japaneseAUR, ttf-ms-win8-koreanAUR, ttf-ms-win8-zh_cnAUR, ttf-ms-win8-zh_twAUR, ttf-ms-win8-thaiAUR, ttf-ms-win8-otherAUR, ttf-noto-fonts-simpleAUR, ttf-kidsAUR, ttf-liberation-sans-narrowAUR, ttf-cavafy-scriptAUR, ttf-ms-fontsAUR, ttf-dejavu-ibAUR, ttf-zeldaAUR, ttf-oxygenAUR, ttf-oxygen-gfAUR, ttf-share-gfAUR, ttf-gostAUR, otf-inconsolata-dzAUR, ttf-d2codingAUR, ttf-agaveAUR, ttf-caracteresAUR, ttf-cuprumAUR, ttf-autour-oneAUR, ttf-impallari-milongaAUR, ttf-impallari-miltonianAUR, ttf-clarity-cityAUR, ttf-karlaAUR, ttf-ms-win10AUR, ttf-ms-win10-japaneseAUR, ttf-ms-win10-koreanAUR, ttf-ms-win10-seaAUR, ttf-ms-win10-thaiAUR, ttf-ms-win10-zh_cnAUR, ttf-ms-win10-zh_twAUR, ttf-ms-win10-otherAUR, ttf-win10AUR, ttf-ms-win10-cdnAUR, ttf-bmonoAUR, ttf-pt-astra-factAUR, ttf-weblysleekuiAUR, ttf-pt-astra-sansAUR, ttf-pt-astra-serifAUR, ttf-pt-sansAUR, ttf-pt-serifAUR, ttf-pt-monoAUR, ttf-pt-root_uiAUR, ttf-xo-fontsAUR, noto-fonts-liteAUR, ttf-paratypeAUR, ttf-plemoljp-binAUR, ttf-dejavu-emojilessAUR, ttf-ms-win11-autoAUR, noto-fonts-variable-liteAUR, ttf-lucida-fontsAUR, ttf-ms-win11AUR, ttf-ms-win11-japaneseAUR, ttf-ms-win11-koreanAUR, ttf-ms-win11-seaAUR, ttf-ms-win11-thaiAUR, ttf-ms-win11-zh_cnAUR, ttf-ms-win11-zh_twAUR, ttf-ms-win11-otherAUR, ttf-plemoljpAUR, apple-fontsAUR, ttf-juiseeAUR, ttf-ms-win10-autoAUR, noto-fonts-latin-greek-cyrillicAUR, ttf-noto-sans-vfAUR, ttf-noto-serif-vfAUR, ttf-noto-sans-mono-vfAUR, gnu-free-fonts, noto-fonts, ttf-bitstream-vera, ttf-croscore, ttf-dejavu, ttf-droid, ttf-ibm-plex, ttf-input, ttf-liberation, ttf-mona-sans)
- docker-compose (docker-compose-gitAUR, docker-compose-v1-binAUR) (optional) – For support docker inside Pycharm
- docker-machine (docker-machine-gitlab-binAUR) (optional) – For support docker inside Pycharm
- ipython (ipython-gitAUR) (optional) – For enhanced interactive Python shell inside Pycharm
- jupyter-server (optional) – For Jupyter notebooks and apps
- openssh (openssh-gitAUR, openssh-gssapiAUR, openssh-dotconfigAUR, openssh-dotconfig-binAUR, openssh-hpn-shimAUR, openssh-selinuxAUR) (optional) – For deployment and remote connections
- python-coverage (optional) – For support code coverage measurement
- python-pytest (python-pytest7) (optional) – For support testing inside Pycharm
- python-setuptools (optional) – Packages manager for Python, for project interpreter
- python-tox (optional) – Python environments for testing tool
- vagrant (vagrant-gitAUR) (optional) – For support virtualized development environments
Required by (0)
Sources (4)
Latest Comments
« First ‹ Previous 1 .. 10 11 12 13 14 15 16 17 18 19 20 .. 44 Next › Last »
hopter commented on 2020-12-11 10:41 (UTC)
Singularity commented on 2020-12-08 19:24 (UTC)
I just looked over the last changes. You placed a link to the icon in /usr/share/pixmaps. However, you also hardcoded the icon path in the desktop files now. If you wouldn't do that, the icon theme could provide it's own icon, and the one from pixmaps would be used if it doesn't. Also, I think using the pixmaps directory is deprecated, /usr/share/icons/hicolor/scalable/apps/ is the new location.
PS: I also wouldn't hardcode the executable's path either, because then I can override it by placing my own in /usr/local/bin … (For example, I do that with java applications which still need java8, to set there a different JAVA_HOME and then calling the real binary from there.)
klaasjanelzinga commented on 2020-12-08 10:19 (UTC)
@donny thanks for the reply. I had cython installed and did a clean build. The problem was that I was working in a virtualenv. In this virtualenv there was no Cython installed.
So I deactivated and it worked, like a charm :)
donny commented on 2020-12-08 09:49 (UTC)
@klaasjanelzinga: Make sure your system is up to date (pacman -Suy) and cython
package is installed (it's in makedepends), it's in the [community] repo. Also if you use yay
or some similar aur helper, do a clean build, don't re-use your old build files.
klaasjanelzinga commented on 2020-12-08 09:36 (UTC) (edited on 2020-12-08 09:37 (UTC) by klaasjanelzinga)
Hi, I am getting an error when updating:
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Traceback (most recent call last):
File "pycharm-2020.3/plugins/python/helpers/pydev/setup_cython.py", line
112, in <module>
build_extension("_pydevd_bundle", extension_name, target_pydevd_name,
force_cython, extension_folder, True)
File "pycharm-2020.3/plugins/python/helpers/pydev/setup_cython.py", line
69, in build_extension
from Cython.Build import cythonize # @UnusedImport
ModuleNotFoundError: No module named 'Cython'
==> ERROR: A failure occurred in build().
Aborting...
error making: pycharm-professional
mqs commented on 2020-12-06 12:43 (UTC)
@XavierCLL thank you for the swift fix :)
Xavier commented on 2020-12-06 01:54 (UTC) (edited on 2020-12-06 02:01 (UTC) by Xavier)
Hi @mqs, thanks for reporting it, I didn't know that some app still uses the pixmaps folder, fixed, (update: small fix but I decided increases the pkgrel)
mqs commented on 2020-12-05 23:17 (UTC)
Hey!
Thanks for the package. Could you please put the icon back into /usr/share/pixmaps
, so other apps can find it via xdg (when only searching for the icon)? A symlink to /opt/pycharm-professional/bin/pycharm.png
(or svg) should be enough.
I noticed that it was gone by pure coincidence (the albert plugin[1] uses it and I was working on it today) :D
Is there a reason it was (re)moved?
[1] Albert Launcher: https://albertlauncher.github.io/ Jetbrains plugin for albert: https://github.com/mqus/jetbrains-albert-plugin
Xavier commented on 2020-12-05 18:48 (UTC)
Thanks guys, updated and fixed
donny commented on 2020-12-05 14:34 (UTC) (edited on 2020-12-05 14:35 (UTC) by donny)
@qft thanks for your tip, it's working again.
- add 'cython' to makedepends, so it looks like this:
makedepends=('python-setuptools' 'cython')
- update the build() function:
build() {
cd "pycharm-$pkgver"
# compile PyDev debugger used by PyCharm to speedup debugging
rm plugins/python/helpers/pydev/_pydevd_frame_eval/*.c
python plugins/python/helpers/pydev/setup_cython.py build_ext --build-temp build --build-lib . --force-cython
rm -r bin/fsnotifier lib/pty4j-native/linux/{x86,ppc64le}
}
Pinned Comments