Gnome 3:如何在 Chrome 中获得相同的鼠标光标?

dav*_*ash 16 gnome google-chrome cursor cursor-theme

我在 Ubuntu 15.10 上,最近切换到 Gnome。很棒,但 Chrome 中的鼠标光标总是不同的。

我正在使用google-chrome官方回购:

$ 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
Run Code Online (Sandbox Code Playgroud)

在 gnome-tweak-tool 中,我将光标设置为 Adwaita。当我跑步时,sudo update-alternatives --config x-cursor-theme我也设置了 Adwaita:

$ 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:
Run Code Online (Sandbox Code Playgroud)

这适用于除 Chrome 之外的所有应用程序,它显示白色光标(我认为它是 DMZ-White)。

我的/usr/share/icons/default/index.theme包含这个:

[Icon Theme]
Inherits=Adwaita
Run Code Online (Sandbox Code Playgroud)

奇怪的是,如果我使用 gnome-tweak 设置并将 x-cursor 主题配置为使用 DMZ-White,Chrome 就会开始使用 Adwaita!

理想情况下,我想使用 DMZ-White,但只要 Gnome 和 Chrome 之间保持一致就可以了。

我有一种感觉,这与 x-cursor-theme 中的“优先级”有关。

我不介意变通办法,我真的只是想让光标保持一致!提前致谢。

小智 15

编辑文本文件/usr/share/icons/default/index.theme

将其内容替换.theme为所需光标的 。

在这种情况下,您选择的光标是/usr/share/icons/Adwaita/cursor.theme

因此,更换的内容/usr/share/icons/default/index.theme与那些/usr/share/icons/Adwaita/cursor.theme

重新启动 Chrome。