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

我在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 

在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  to keep the current choice[*], or type selection number: 

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

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

 [Icon Theme] Inherits=Adwaita 

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

理想情况下我想使用DMZ-White,但只要它在Gnome和Chrome之间保持一致就没问题。

我感觉它与x-cursor-theme中的“Priority”有关。

我不介意解决方法,我真的只想让游标保持一致! 提前致谢。

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

用你想要的光标.theme替换它的内容。

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

因此,将/usr/share/icons/default/index.theme的内容替换为/usr/share/icons/default/index.theme的内容。

重启Chrome。

当您将铬安装为快照包时,可能会出现问题

错误报告

在撰写本文时,此错误尚未修复。 解决方法是用常规包替换snap:

  • 首先确保您已登录帐户,以便同步您的设置,以后可以恢复
  • 在Ubuntu 18.04的软件中心,删除Chromium (快照包)并安装Chromium web browser (常规包)
  • 启动浏览器并登录您的帐户以恢复书签等。