我的桌面上有一个图标:

我要找到图标文件。
ls Desktop | rg wps
wps-office-prometheus.desktop列出wps-office-prometheus.desktop中的内容:
cat Desktop/wps-office-prometheus.desktop
[Desktop Entry]
Comment=Use WPS Writer to office work.
Comment[zh_CN]=使用 WPS 2019进行办公
Exec=/usr/bin/wps %F
GenericName=WPS
GenericName[zh_CN]=WPS 2019
Name=WPS 2019
Name[zh_CN]=WPS 2019
StartupNotify=false
Terminal=false
Type=Application
Categories=Office;WordProcessor;Qt;
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Icon=wps-office2019-kprometheus
InitialPreference=3
StartupWMClass=wpsoffice也许有一个名为wps-office2019-kprometheus的文件包含wps图标,我想找到位置。
sudo find /usr -name 'wps-office2019-kprometheus'
sudo find ./ -name 'wps-office2019-kprometheus'
sudo find /var -name 'wps-office2019-kprometheus'他们都找不到文件,那又怎么做呢?
发布于 2022-11-12 03:09:34
与其使用'wps-office2019-kprometheus',不如使用'wps-office2019-kprometheus*'。您没有得到任何输出,因为图标文件名包含一个扩展名(例如jpg、png、svg等)。
所以你应该跑:
sudo find /usr -name 'wps-office2019-kprometheus*'或者:
find /usr/share/icons -name 'wps-office2019-kprometheus*'
# Might not be necessary to use 'sudo' and usually the icons are under
# '/usr/share/icons' path.https://unix.stackexchange.com/questions/724562
复制相似问题