我在Chrome浏览器上使用不同的配置文件,并在桌面上创建快捷方式(在Ubuntu20.04中)。但是,我正在尝试自定义每个快捷方式的图标和描述。
现在我有:

快捷图标是相同的,我也不能重命名它们。
我想让他们看起来像这样

-with自定义图片并重命名
守则:
~/Desktop$ls -l
-rwxrw-r-- 1 user user 249 Jan 1 15:18 Michelle.desktop
-rwxrw-r-- 1 user user 223 Dec 30 17:04 Richard.desktop~/Desktop$cat Richard.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=.../orange.png
Exec=google-chrome --profile-directory=Default
Name[en_US]=Chrome-Default
Name=Chrome-Default
Icon=google-chrome~/Desktop$cat Michelle.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=.../Netscape-icon.png
Exec=google-chrome --profile-directory=Profile\ 1
Name[en_US]=Chrome-Profile\ 1
Name=Chrome-Profile\ 1
Icon=google-chrome谢谢
发布于 2022-01-02 09:56:58
对于每个要被识别为不同应用程序的铬实例,您将需要使用自定义WM_CLASS启动这些实例。您可以通过向您的--class myprofile1行提供选项Exec= (将myprofile1更改为您选择的名称)来做到这一点。然后添加一行StartupWMClass=myprofile1,让桌面环境将该实例与该特定的.desktop文件连接起来。
https://askubuntu.com/questions/1384746
复制相似问题