linux系统不像windows系统下,有一些默认生成的快捷方式。因为文件包也更加直接,许多软件并没有给图标文件,默认需要命令行开启。这对于习惯windows图标使用的人十分不友好,因此我创建了很多desktop文件,用他们开启软件本体。这里举几个例子:Matlab.desktop;Quartus.desktop和idea.desktop。
常用科研软件哈哈,我电脑上的desktop文件都存在usr/share/applications,不同电脑存储路径不同,可以看一下自己已经安装好的软件图标文件都存放在哪里,按图索骥就好。
[Desktop Entry]
Name=Matlab
Comment=Matlab for linux
Keywords=Scientific;Simulation;Math
Exec=/bin/bash -c "export LD_LIBRARY_PATH=/home/****/R2020B/bin/glnxa64:/usr/lib/x86_64-linux-gnu; /home/****/R2020B/bin/matlab -desktop" # 在这里开启/bin/bash 输入常用的配置文件路径(glnxa64,linux-gnu),开启需要的bash文件(matlab.sh)
Icon=图标文件存储位置
Terminal=false
StartupNotify=true
Type=Application #样式就写应用
Categories=Science;Math;#种类写科学和数学
做FPGA用的,我这里安装的是quartus lite
[Desktop Entry]
Name=Quartus Lite
Comment=Quartus Lite for linux
Keywords=Scientific;Simulation;FPGA
Exec=/bin/bash -c "/home/****/altera_lite/24.1std/quartus/bin/quartus"%f #这里设置简单一些,可以不需要常用的配置文件路径
Icon=/home/****/altera_lite/24.1std/quartus/common/htdocs/favicon.ico
Terminal=false
StartupNotify=true
Type=Application
Categories=Science;FPGA;
jetbrains家的软件最好参考相关的desktop文件完成配置,我记得pycharm或者clion都有自带的desktop文件。
[Desktop Entry]
Version=1.0
Type=Application
Name=IDEA
Icon=/opt/ideaIU-2025.1/idea-IU-251.23774.435/bin/idea.svg
Exec="/opt/ideaIU-2025.1/idea-IU-251.23774.435/bin/idea" %f
Comment=A cross-platform IDE for java and kotlin
Categories=IDE;
Terminal=false
StartupWMClass=jetbrains-idea
StartupNotify=true