Tri Nguyen Asked: 2019-12-13 19:08:55 +0800 CST2019-12-13 19:08:55 +0800 CST 2019-12-13 19:08:55 +0800 CST 7zip 桌面图标不见了 772 通过 snap 重新安装 Ubuntu 和 7zip-desktop 后,我丢失了像这样的 7zip 图标。 所有功能都运行良好,唯一烦人的部分是重新安装 Ubuntu 之前缺少的图标。有谁知道如何解决这一问题?谢谢。 icons desktop-icons 7zip 1 个回答 Voted Best Answer UnKNOWn 2019-12-13T21:35:00+08:002019-12-13T21:35:00+08:00 .desktop 文件似乎没有该行Icon=/path/to/icon。 因此手动添加该行将显示图标。 sudo -H gedit /var/lib/snapd/desktop/applications/p7zip-desktop_p7zip-desktop.desktop 添加行Icon=</path/to/icon> [Desktop Entry] X-SnapInstanceName=p7zip-desktop Name=P7Zip Desktop GenericName=P7Zip Desktop - File Manager Type=Application Categories=GTK;Utility;Archiving;Compression; Terminal=false Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/p7zip-desktop_p7zip-desktop.desktop /snap/bin/p7zip-desktop %U NoDisplay=false Icon=/home/ubuntu/Downloads/1.png MimeType=application/gzip;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-lha;application/x-lhz;application/x-lzma;application/x-lzma-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-tar;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/zip;application/vnd.ms-cab-compressed;
.desktop 文件似乎没有该行
Icon=/path/to/icon
。因此手动添加该行将显示图标。
添加行
Icon=</path/to/icon>