Fix System Settings Docky icon displayed as bluetooth in Linux Mint

Docky, like Plank or Cairo Dock, is an advanced shortcut bar that sits at the edges of your screen. It provides easy access to some of the files, folders and applications on your computer, displays which applications are currently running, holds windows in their minimized state and more.

Install or remove Docky in Linux Mint
Installing Docky
From Terminal:

sudo add-apt-repository ppa:docky-core/stable
sudo apt-get update
sudo apt-get install docky

Removing Docky
From Terminal:

sudo apt-get remove --purge docky && sudo apt-get autoclean && sudo apt-get autoremove

Optional: Delete Docky PPAs and Authentication key in Software Sources

docky-ppas
docky-ppa-authentication-key


It happens that System Settings icon is incorrectly displayed as “Bluetooth” in Docky for Linux Mint users (at least in the Cinnamon edition).

Docky cinnamon-system-settings-docky-icon

Next, I’ll give you some tips on how to correct this visually odd glitch. Hopefully it will help you not only with the System Settings icon but with any other application icon wrongfully represented in Docky. Let’s get down to it :)

[wp_ad_camp_1]

Straight to the point

In Terminal:

sudo killall docky
sudo cp /usr/share/applications/cinnamon-settings.desktop /usr/share/applications/cinnamon-settings.desktop.`date +"%m_%d_%Y"`
sudo sed '/Keywords=/a\StartupWMClass=Cinnamon-settings.py' -i /usr/share/applications/cinnamon-settings.desktop
rm ~/.cache/docky/docky.desktop.*.cache

Now launch docky once again and enjoy your System Settings icon :)

docky-system-setting-correct-icon

 

What was done

1- Close Docky:

sudo killall docky

2- Make a backup copy of /usr/share/applications/cinnamon-settings.desktop. This is the file we worked with.

sudo cp /usr/share/applications/cinnamon-settings.desktop /usr/share/applications/cinnamon-settings.desktop.`date +"%m_%d_%Y"`

…and make sure the backup copy is there 😉

ls -la /usr/share/applications/cinnamon-settings.desktop*
$-rw-r--r-- 1 root root 11022 Jan  8 08:36 /usr/share/applications/cinnamon-settings.desktop
$-rw-r--r-- 1 root root 11022 Jan  8 08:40 /usr/share/applications/cinnamon-settings.desktop.01_08_2016


3- Edited cinnamon-settings.desktop adding StartupWMClass=Cinnamon-settings.py attribute so that Docky can match its icon.

sudo gedit /usr/share/applications/cinnamon-settings.desktop

gedit-cinnamon-settings

4- Clear current user Docky cache

 rm ~/.cache/docky/docky.desktop.*.cache

That’s all!

 

Fixing Docky Icons

If you ever come across an icon in Docky not being properly displayed, here is a way to correct it.

1- Get the WM_CLASS property from the application window. In Terminal:

xprop | grep WM_CLASS | awk '{print $4}'
Press < 'Enter'> and click the window you want to get the WM_CLASS from. Take note of the output

cinnamon-settings-wm_class

For example, System Settings WM_CLASS is “Cinnamon-settings.py” (see screenshot above), which is the value we used as StartupWMClass attribute, as explained in step #3.

2- Edit its corresponding .desktop file under /usr/share/applications as we did with cinnamon-settings.desktop.

3- Close Docky, delete its cache files and launch it again.

Your comment is appreciated. Let me know if this helped you in some way!

[wp_ad_camp_3]

Related Post

Update Manager for Linux Lite 3.x Series Linux Lite offers a one-click solution to check for and install updates. It seems that this simple approach works for the vast majority of users and m...
File Sharing in Linux Mint 17.x Want to share files in Linux Mint? The process is rather simple. If basic sharing is what you're after in Linux Mint, share your files and setup folde...
Installing Subsonic Music Streamer in Ubuntu Serve... I've have finally started to move again some services in my LAN away from Windows onto Ubuntu servers. This time is Subsonic's turn so I decided to ...

Leave a Reply