因此,我可以从终端以 Sudo 身份顺利运行 PyCharm,我已按照指南使其从启动器运行,但它没有以 Sudo 身份运行。有什么想法吗?
Ubuntu 16.04
答案1
所以我找到了我的 jetbrains-pycharm-ce.desktop 并使用了 gksudo
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Community Edition
Icon=/usr/lib/pycharm-community/bin/pycharm.png
Exec= gksudo -k -u root "/usr/lib/pycharm-community/bin/pycharm.sh" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce
答案2
@sourav,你可以从
/var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop
然后你可以使用以下方法打开它:
sudo nano /var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop