Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在基于 Ubuntu 或 Debian 的系统上创建启动图标(快捷方式) #10

Open
cnwutianhao opened this issue Feb 4, 2024 · 0 comments
Labels

Comments

@cnwutianhao
Copy link
Owner

在 Ubuntu 系统,有时我们安装的应用程序在桌面或应用程序菜单中看不到快捷方式。这篇文章将告诉你如何在基于 Ubuntu 或 Debian 的系统上创建启动图标(快捷方式)。本文以 IDEA 为例介绍创建桌面配置文件的方法。

  1. 打开终端,进入到 /usr/share/applications 目录

    cd /usr/share/applications
    
  2. 创建 .desktop 文件

    sudo touch intellij-idea.desktop
    
  3. 使用 Visual Studio Code文本编辑器 打开 intellij-idea.desktop,然后把下面的内容复制过去

    推荐使用 Visual Studio Code,原因是配置简单,不需要敲命令

    [Desktop Entry]
    Name=IntelliJ IDEA
    Comment=intellij idea
    Exec=/home/dataspace01/Ubuntu_Software/IntelliJ-IDEA/bin/idea.sh
    Icon=/home/dataspace01/Ubuntu_Software/IntelliJ-IDEA/bin/idea.png
    Terminal=false
    Type=Application
    • Name:应用程序名称
    • Comment:将鼠标悬停在图标上时出现的小对话框
    • Exec:应用程序的可执行文件的路径
    • Icon:应用程序图标的路径
    • Terminal:软件打开时是否启动终端
  4. 保存 intellij-idea.desktop,就可以在 显示应用程序 列表里看到刚刚配置的快捷方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant