Installing on Linux
已回答
I am trying to install IntelliJ Idea on Arch Linux. I try to run ./idea.sh as described, and it works for a root user. However, when I try it as myUser, it gives me this dialog at the end:
=== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/home/myUser/.cache/JetBrains/IntelliJIdea2020.2/tmp/launcher_installer6.sh' as the super user
Authenticating as: myUser
Password:
And even though I input the password associated with my user, it gives me this message:
==== AUTHENTICATION FAILED ====
I don't think it's a good idea to run IntelliJ as root, so what should I do to make it work with myUser?
请先登录再写评论。
Is your user included in sudoers? IntelliJ IDEA is using and changing system libs, so superuser grants needed to start it.
Yes, my user is included in sudoers. I used "sudo visudo /etc/sudoers" to add the line "myUser ALL=(ALL) ALL" under the line "root ALL=(ALL) ALL". The sudo command has always worked just fine for myUser.
Also, my system does not have a "sudo" group by default.
How do you run IDEA (all local, or using any kind of a remote access)?
I wonder why does your system ask for a password in the console instead of a GUI agent?
See also https://youtrack.jetbrains.com/issue/IDEA-172872
Surprise, surprise, a simple reboot fixed the problem. I am running it locally, by invoking "idea.sh" after adding the correct folder to my $PATH variable. I am now also using rofi to initiate it. Thank you for the help!