关于在Ubuntu,deepin系列创建快捷方式

很多linux下的软件。最新版的一般都是下载的压缩包,解压缩就可以运行,但是但是,每次打开目录运行会好麻烦。所以这时候,创建快捷方式就显得很重要。

  • 第一步,将下载好的压缩包解压到自己装软件的目录,这里推荐在/opt/下,因为/opt/的作用就是放置第三方大型软件的地方。
  • 在Ubuntu系列的/usr/share/applications目录下,创建以.desktop为后缀名的文件,在里面填上一下内容。
    以firefox为例,创建快捷方式:
[Desktop Entry]
Name=Firefox
Comment=this is firefox
Exec=/opt/firefox/firefox    #指向firefox解压后,文件夹里面的,firefox的可运行文件
Icon=/opt/firefox/browser/chrome/icons/default/default128.png       # 图标
Terminal=false         # 运行时是否打开terminal
Type=Application

Categories=Application;Network;

Android Studio创建快捷方式如下:

[Desktop Entry]
Name=AndroidStudio
Comment=this is AndroidStudio
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.png
Terminal=false
Type=Application

Categories=Application;Network;
原文地址:https://www.cnblogs.com/jlxa162hhf/p/14161262.html