It will help you to fix unrecognized, ugly or double icons in Linux.
gitwget
yay -S startupwmclassfixerDownload the zipped file or clone the repository
git clone https://github.com/bil-elmoussaoui/StartupWMClassFixer.gitOpen the script using
sudo ./fixOr using this if you've installed the script from a package
sudo StartupWMClassFixerYou can revert your modifications using --revert argument.
sudo ./fix --revert sudo ./fix --updateAlmost all the application desktop files are stored in /usr/share/applications that's why we need root permissions to modify them.
The script will modify the desktop file of supported applications (list of supported applications) and add/modify StartupWMClass key.
For more informations about StartupWMClass see Recognized desktop entry keys.
- Open the application
- Open the terminal and type
xprop WM_CLASS - The mouse cursor will change, click on the application window and copy the
WM_CLASS(STRING)value - Clone the repository and modify the database file following this
Application Name, Desktop file name, WM_CLASS
- Create a pull request