检索 Ubuntu 启动器图标 [英] Retrieve Ubuntu launcher icon

查看:41
本文介绍了检索 Ubuntu 启动器图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法检索应用程序启动器图标.

Is there a way to retrieve application launcher icon.

我尝试了 xprop _NET_WM_ICON 命令,但它返回

I tried xprop _NET_WM_ICON command but it returns with

_NET_WM_ICON: Not found error. 

但是我可以在系统托盘(启动器)中看到图标.

But I can see the icon in System Tray(Launcher).

我们如何检索该图标.还有其他方法吗?

How can we retrieve that icon. Any other method ?

推荐答案

在 Ubuntu/Unity 中,它在应用程序 .desktop 文件中定义,而不是 _NET_WM_ICON.请参阅我的相关答案桌面文件规范

In Ubuntu/Unity it's defined in application .desktop file, not _NET_WM_ICON. See my related answer and desktop file specification

您可以通过设置 _NET_WM_DESKTOP_FILE 属性将您的窗口与桌面文件相关联/a>

You can associate your window with desktop file by setting _NET_WM_DESKTOP_FILE property

这篇关于检索 Ubuntu 启动器图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆