Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - intellij-idea-ce

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: intellij-idea-ce 2016.3.4-5

Git Clone URL: https://aur-dev.archlinux.org/intellij-idea-ce.git (read-only)
Package Base: intellij-idea-ce
Description: Intellij Idea IDE (community version) with Intellij JDK
Upstream URL: http://www.jetbrains.com/idea/
Keywords: ide java jvm scala
Licenses: Apache2
Submitter: amrhassan
Maintainer: amrhassan
Last Packager: amrhassan
Votes: 8
Popularity: 1.451822
First Submitted: 2016-08-29 09:16
Last Updated: 2017-02-02 08:07

Latest Comments

amrhassan commented on 2016-11-09 10:54

@xduugu Fixed. Thanks.

xduugu commented on 2016-11-09 08:59

Your symlinks are broken, you should not include $srcdir or $pkgdir in the target. I had to replace

mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
for i in $(ls $srcdir/idea-IC-$_buildver/license/ ); do
ln -sf "${srcdir}/idea-IC-$_buildver/license/$i" "${pkgdir}/usr/share/licenses/${pkgname}/$i"
done
ln -s "${pkgdir}/opt/${pkgname}/bin/idea.sh" "${pkgdir}/usr/bin/idea-ce-eap"

with

mkdir -p "${pkgdir}/usr/share/licenses/"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
ln -sf "/opt/intellij-idea-ce/license" "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "/opt/${pkgname}/bin/idea.sh" "${pkgdir}/usr/bin/idea-ce-eap"

mastercoms commented on 2016-11-01 14:08

Hello, the .desktop file code should be

cat <<EOF
[Desktop Entry]
Version=$pkgver
Type=Application
Name=IntelliJ IDEA Community
Comment=Intelligent Java IDE
Exec="/opt/$pkgname/bin/idea.sh" %f
Icon=/opt/$pkgname/bin/idea.png
Comment=$pkgdesc
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-idea-ce
EOF
) > "${srcdir}/${pkgname}.desktop"

This removes the EAP label from the package, and changes the StartupWMClass to the WMClass of the IntelliJ window, so that the application shortcut and running window icon are merged in a desktop environment.