Ubuntu Gnome下如何修改应用图标icon?

2023-12-04 0 144

在Ubuntu系统的Gnome图形桌面环境中,有用户遇到这样的问题:明明在系统中安装了matlab程序,但是在软件搜索中却找不到matlab,检查后发现是matlab没有对应的.desktop文件。这该怎么办呢?Ubuntu Gnome下有该怎么修改应用的图标icon呢?下面小编将为大家带来Ubuntu Gnome下修改应用图标icon的方法!一起去看看吧!

Ubuntu Gnome下如何修改应用图标icon?

步骤如下:

1.准备一个icon图像文件

如我这里的文件名为matlab.png,将该文件拷贝到/usr/share/icons/hicolor/scalable/apps/下:

aborn@aborn-pc ~/tmp % sudo cp matlab.png /usr/share/icons/hicolor/scalable/apps/

2.根据你应用安装情况编辑一个.desktop文件,

这里我新建一个matlab.desktop文件,内容如下:

[Desktop Entry]

Version=7.12.0.635 (R2011a)

Name=Matlab

GenericName=Matlab

Comment=Matlab R2011a Version

Exec=/usr/matlab/bin/matlab -desktop %F

TryExec=matlab

Icon=/usr/share/icons/hicolor/scalable/apps/matlab.png

Type=Application

Terminal=false

其中的Exec为执行命令,而Icon为对应的图标图像文件路经。

3.将.desktop文件拷贝到 /usr/share/applications/下

aborn@aborn-pc ~/tmp % sudo cp matlab.desktop /usr/share/applications/

4.然后在软件搜索里就能找到了。

Ubuntu Gnome下如何修改应用图标icon?

以上内容就是小编为大家带来的关于Ubuntu Gnome下修改应用图标icon的方法了,遇到同样问题的用户可以参考上面介绍的方法来修改图标。希望能够帮助到大家!

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 Ubuntu/Debian Ubuntu Gnome下如何修改应用图标icon? https://www.u-9.cn/system/ubuntudebian/85936.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务