关于在Ubuntu上不能自动创建Intellij Idea快捷方式的解决办法
2014-03-26 10:56
417 查看
Custom Launcher for IntelliJ IDEA in Ubuntu Unity
IntelliJ IDEA does not install a program launcher during installation. You only
get a start-up script. So you need to create a custom launcher to quickly and
easily run the program without going to the terminal.
In previous versions of Ubuntu we had this to quickly create a launcher.
But in Unity it is not so easy.
For IDEA, first you have to specify the location of Java by inserting the
following line in the idea.sh file in the bin directory of IDEA installation
location.
IDEA_JDK=/usr/local/lib/java/jdk
Next you have to create a custom launcher.
For IntelliJ IDEA 11
If you have IntelliJ IDEA 11, things are pretty easy. Just run IDEA, then go
to Tools menu and select Create Desktop Entry . A launcher will be created
at ~/.local/share/applications and you will be able to access it through
the Dash. You can pin it to the launcher bar by right clicking on the icon when
it's running or by drag and drop of the icon.
For older versions
This method can be used to create a launcher for any application, not just
IntelliJ IDEA. For any launcher in Unity what you need to create is
a .desktop file.
First create a file named idea.desktop in your home folder. Then open it
with a text editor and add the following to it.
[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA IDE
Exec=/home/nufail/apps/idea-IC-107.587/bin/idea.sh
Icon=/home/nufail/apps/idea-IC-107.587/bin/idea_CE128.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;IDE;
nautilus-actions.org gives a good explanation about .desktop files and what all
these entries mean and other entries available for .desktop files.
Now you can keep this file in the Desktop to use it as a desktop launcher or you
can add it to ~/.local/share/applications to access it through the Dash
for only the current user. If you need to access it through the dash for all users,
then add it to /usr/share/applications .
成功~
IntelliJ IDEA does not install a program launcher during installation. You only
get a start-up script. So you need to create a custom launcher to quickly and
easily run the program without going to the terminal.
In previous versions of Ubuntu we had this to quickly create a launcher.
But in Unity it is not so easy.
For IDEA, first you have to specify the location of Java by inserting the
following line in the idea.sh file in the bin directory of IDEA installation
location.
IDEA_JDK=/usr/local/lib/java/jdk
Next you have to create a custom launcher.
For IntelliJ IDEA 11
If you have IntelliJ IDEA 11, things are pretty easy. Just run IDEA, then go
to Tools menu and select Create Desktop Entry . A launcher will be created
at ~/.local/share/applications and you will be able to access it through
the Dash. You can pin it to the launcher bar by right clicking on the icon when
it's running or by drag and drop of the icon.
For older versions
This method can be used to create a launcher for any application, not just
IntelliJ IDEA. For any launcher in Unity what you need to create is
a .desktop file.
First create a file named idea.desktop in your home folder. Then open it
with a text editor and add the following to it.
[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA IDE
Exec=/home/nufail/apps/idea-IC-107.587/bin/idea.sh
Icon=/home/nufail/apps/idea-IC-107.587/bin/idea_CE128.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;IDE;
nautilus-actions.org gives a good explanation about .desktop files and what all
these entries mean and other entries available for .desktop files.
Now you can keep this file in the Desktop to use it as a desktop launcher or you
can add it to ~/.local/share/applications to access it through the Dash
for only the current user. If you need to access it through the dash for all users,
then add it to /usr/share/applications .
成功~
相关文章推荐
- 给自己的文件或软件创建快捷方式,为何不能在别人的电脑上使用的解决办法
- 关于IE双击变成了创建快捷方式的解决办法
- Ubuntu 下Pycharm快捷方式创建最简单办法 以及安装好了Pycharm但是通过快捷方式启动提示JDK找不到的解决办法
- 关于在eclipse中创建servlet不能自动添加web.xml文件的解决办法
- Ubuntu创建Eclipse启动栏快捷方式,并解决No Java virtual machine was found....eclipse/jre/bin/java
- 关于vs2012不能创建项目和打开项目的解决办法
- vmware ubuntu14.04虚拟机不能正常拷贝文件到windows且不能自适应虚拟机屏幕窗口自动变化的解决办法
- 关于jq动态创建出按钮不能添加事件解决办法
- 关于动态创建控件,第二次赋值不能显示解决办法
- windows7不能将程序快捷方式附加到任务栏的解决办法
- Ubuntu中创建Intellij IDEA快捷方式
- 关于IOS二维码创建、扫描的使用方式(IOS,ZBar支持64位解决办法)
- Ubuntu中创建Intellij IDEA快捷方式
- Eclipse 不能自动创建Activity 和layout文件 解决办法
- 关于快捷方式不能使用,发表自己的解决方式
- ubuntu 14.04LTS快捷方式打开Sublime Text不能输入中文的解决方法
- 关于Ubuntu 10.4不能安装VMware workstation7的解决办法!!!!!
- 实用技巧(1):Ubuntu中创建Intellij IDEA快捷方式
- 关于RIDE桌面快捷方式创建失败问题解决
- 关于Xcode6.0.1创建项目不自动创建Prefix.pch文件的解决办法