Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@cnwutianhao

Description

@cnwutianhao

在 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,就可以在 显示应用程序 列表里看到刚刚配置的快捷方式

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions