[Seek Help] 手动安装软件但是想被utools识别且在启动器里显示
Tofloor
poster avatar
chaleaoch
deepin
2024-04-07 00:28
Author

譬如我从官网下载了idea并解压缩

在/opt/idea/bin/idea.sh中是可以启动的。

我想在启动器中也能启动这个idea. 且在utools中可以找到idea.

请问如何实现?谢谢。

Reply Favorite View the author
All Replies
jjcui8595
deepin
2024-04-07 09:01
#1

制作一个.desktop文件,放在~/.local/share/applications/中

Reply View the author
coldlook
deepin
2024-04-07 09:06
#2

写一个idea.desktop文件, 放到 /usr/share/applications/~/.local/share/applications/

[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA
Icon=/opt/idea/bin/idea.png   # 这里的路径应该指向 IDEA 的图标文件
Exec=/opt/idea/bin/idea.sh    # 这里的路径应该指向 idea.sh 文件
Comment=Integrated Development Environment
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea

Reply View the author
chaleaoch
deepin
2024-04-07 09:31
#3

谢谢楼上两位大佬.

Reply View the author