Ubuntu – Gnome 3: How to get the same mouse cursors in Chrome

cursorcursor-themegnomegoogle-chrome

I'm on Ubuntu 15.10 and recently switched to Gnome. It's great but the mouse cursors in Chrome are always different.

I'm using google-chrome from the official repo:

$ more /etc/apt/sources.list.d/google-chrome.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

In gnome-tweak-tool I have the cursors set to Adwaita. When I run sudo update-alternatives --config x-cursor-theme I also have Adwaita set:

$ sudo update-alternatives --config x-cursor-theme
There are 7 choices for the alternative x-cursor-theme (providing /usr/share/icons/default/index.theme).

  Selection    Path                                     Priority   Status
------------------------------------------------------------
  0            /usr/share/icons/DMZ-White/cursor.theme   100       auto mode
  1            /etc/X11/cursors/core.theme               30        manual mode
  2            /etc/X11/cursors/handhelds.theme          20        manual mode
  3            /etc/X11/cursors/redglass.theme           20        manual mode
  4            /etc/X11/cursors/whiteglass.theme         20        manual mode
* 5            /usr/share/icons/Adwaita/cursor.theme     90        manual mode
  6            /usr/share/icons/DMZ-Black/cursor.theme   30        manual mode
  7            /usr/share/icons/DMZ-White/cursor.theme   100       manual mode

Press <enter> to keep the current choice[*], or type selection number:

This works fine for all applications except Chrome, which displays white cursors (I think it's DMZ-White).

My /usr/share/icons/default/index.theme contains this:

[Icon Theme]
Inherits=Adwaita

The weird thing is that if I use gnome-tweak settings and configure the x-cursor theme to use DMZ-White, Chrome starts using Adwaita!

Ideally I'd like to use DMZ-White, but it would be fine as long as it's consistent between Gnome and Chrome.

I have a feeling it's something to do with the "Priority" in the x-cursor-theme.

I don't mind work-arounds, I'd really just like to get the cursors consistent! Thanks in advance.

Best Answer

Edit the text file /usr/share/icons/default/index.theme.

Replace its contents with the .theme of the cursor you want.

In this case, your cursor of choice is /usr/share/icons/Adwaita/cursor.theme.

Therefore, replace the contents of /usr/share/icons/default/index.theme with those of /usr/share/icons/Adwaita/cursor.theme.

Restart Chrome.

Related Question