start via desktop icon does not work
Hi,
Usually, I start IntelliJ from my desktop, using the desktop icon. But now if I click on the icon nothing happens.
I re-created the icon from the menu (tools> create desktop entry) but that did not help. After spending an hour on this crazy topic I just realized that if I turn on the terminal in the *.desktop file then IntelliJ starts properly. When I turn off the terminal, then the icon does not start the IDE.
Could you please help to fix this issue?
$ cat ~/Desktop/jetbrains-idea.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Ultimate Edition
Icon=/home/xxx/dev/applications/intellij/idea-IU-203.6682.168/bin/idea.svg
Exec="/home/xxx/dev/applications/intellij/idea-IU-203.6682.168/bin/idea.sh" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=true
StartupWMClass=jetbrains-idea
StartupNotify=true
permission:
$ ll ~/Desktop/
-rwxr-xr-x 1 xxx xxx users 400 Apr 30 14:10 jetbrains-idea.desktop
If I turn off the terminal in the *.desktop (Terminal=false) file then IntelliJ does not start.
If I start it from the command line, IntelliJ starts properly: /home/xxx/dev/applications/intellij/idea-IU-203.6682.168/bin/idea.sh
Intellij version:
IntelliJ IDEA 2021.1 (Ultimate Edition)
Build #IU-211.6693.111, built on April 6, 2021
Licensed to ...........
You have a perpetual fallback license for this version.
Subscription is active until May 2, 2023.
Runtime version: 11.0.10+9-b1341.35 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Linux 4.14.231-173.360.amzn2.x86_64
GC: ParNew, ConcurrentMarkSweep
Memory: 1948M
Cores: 4
Non-Bundled Plugins: org.sylfra.idea.plugins.linessorter (1.0.1), CheckStyle-IDEA (5.51.0), org.sonarlint.idea (4.15.0.30553), org.jetbrains.kotlin (211-1.4.32-release-IJ6693.72), Pythonid (211.6693.115), net.ashald.envfile (3.2.1), ru.adelf.idea.dotenv (2021.1)
Kotlin: 211-1.4.32-release-IJ6693.72
Current Desktop: MATE
Linux version:
$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Please sign in to leave a comment.
Hi. Are there any errors displayed or anything related in logs (Help | Show log...) when IDEA fails to start?
As I mentioned the icon that was generated by IntelliJ does not do anything when I click on it (except it I turn on the terminal in the icon file).
But when I start it from the command line from the same directory with the same command written in the icon file, then there is no error, no issue in the log.
Only the annoying extra terminal window with log.
Does it affect IDEA only? Are all other desktop entries work fine?
Only IntelliJ is affected.
Actually, when I click on the desktop icon the IntelliJ starting, the app appears on the Linux taskbar, and after a couple of seconds closes automatically.
But as I mentioned, if I turn on the terminal in the *.destop file then it starts properly. But the extra terminal is so annoying.
Please share IDE logs via Help | Collect Logs and Diagnostic Data. You can upload the files at https://uploads.jetbrains.com and provide the ID here.
Are there any java_error_in*.log files in the user's home directory?
Hello, I have the same problem on my system:
Manjaro Linux 21.1.0
java -version:
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7)
OpenJDK 64-Bit Server VM (build 11.0.12+7, mixed mode)
IntelliJ IDEA 2021.1.3 (Ultimate Edition)
Build #IU-211.7628.21, built on June 29, 2021
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.10.53-1-manjaro
GC: ParNew, ConcurrentMarkSweep
Memory: 1933M
Cores: 12
Kotlin: 211-1.4.32-release-IJ7628.19
Current Desktop: KDE
I installed IntelliJ a few months ago with snap and everything worked fine.
Yesterday I updated a few packages on my system and since then IntelliJ will only start over the idea.sh script.
When I start IntelliJ over the desktop Icon I get the same problem that Arnold described:
"Actually, when I click on the desktop icon the IntelliJ starting, the app appears on the Linux taskbar, and after a couple of seconds closes automatically."
When started over desktop Icon nothing is written into the java_error_in*.log, build.log or idea.log so I think uploading them is q uite useless.
Best regards Max.
Hello Max,
Could you please try to reinstall IDE? Also you may try to backup/clean folders used to store settings (https://intellij-support.jetbrains.com/hc/en-us/articles/206544519) and run with defaults.
IntelliJ reinstall did not help in my case. I start IDEA from the command line since then.
Arnold,
How did you install IDE? Via package manager?
Actually, I always install IDEA from the TAR file that I download from your website. I create the desktop icon via a simple file copy (cp) command of an existing *.desktop file I have and I change some params in it. It works usually.
As I remember this issue appeared after a Linux update, the same situation then mentioned by Max above.
I've resolved the same issue by removing quotes from exec command generated by Idea's create desktop entry command.
You can try
instead of