在Ubuntu里安装Flatpak软件应用无图标的问题
解决思路:手动将图标添加到系统默认的路径下面
以在Flatpak
下安装OBS
为例,可手动将/var/lib/flatpak/app/com.obsproject.Studio/current/active/export/share/applications/com.obsproject.Studio.desktop
文件复制到/usr/share/applications
目录中。
sh
sudo cp \
/var/lib/flatpak/app/com.obsproject.Studio/current/active/export/share/applications/com.obsproject.Studio.desktop \
/usr/share/applications
图标显示不正确则修改/usr/share/applications/com.obsproject.Studio.desktop
中的Icon
的路径,如:
[Desktop Entry]
Version=1.0
Name=OBS Studio
GenericName=Streaming/Recording Software
Comment=Free and Open Source Streaming/Recording Software
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=obs com.obsproject.Studio
Icon=com.obsproject.Studio
Terminal=false
Type=Application
Categories=AudioVideo;Recorder;
修改为:
[Desktop Entry]
Version=1.0
Name=OBS Studio
GenericName=Streaming/Recording Software
Comment=Free and Open Source Streaming/Recording Software
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=obs com.obsproject.Studio
Icon=/var/lib/flatpak/app/com.obsproject.Studio/current/active/export/share/icons/hicolor/512x512/apps/com.obsproject.Studio.png
Terminal=false
Type=Application
Categories=AudioVideo;Recorder;
最近更新:10/11/2024, 5:02:46 AM
原文链接:在Ubuntu里安装Flatpak软件应用无图标的问题
上一篇:MySQL批量操作优化|下一篇:ubuntu安装openjdk