如何更改 Fedora 22 中的 GDM 登录背景?

How do I change the GDM login background in Fedora 22?

有没有人知道如何在 Fedora 22 中更改 GDM 登录背景?在 Fedora 21(和旧版本)中,您通过以下方式完成此操作:

/usr/share/gnome-shell/theme
make copy of "noise-texture.png" [gdm background]
copy "selected-background-image.png" to /usr/share/gnome-shell/theme
delete "noise-texture.png"
rename "selected-background-image.png" to "noise-texture.png"

当我执行 'sudo find / |grep noise-texture' 时,我只能找到 /usr/share/gnome-control-center/pixmaps/noise-texture-light.png,当我替换它并注销时,它仍然使用灰色背景,而不是自定义图像。

我读到登录屏幕现在使用 Wayland,而不是 X,但是我无法找到除此之外的更多详细信息,或者它是否准确。有没有人知道如何为 Fedora 22 执行此操作?

从 Gnome 开始 Shell 3.16 主题以二进制形式存储在 .gresource 文件中。

你可以通过噪声的 url 来判断它-texture.png 这是 GDM 在第 1607 行的默认背景。

$ vi /usr/share/gnome-shell/theme/gnome-classic.css

#lockDialogGroup {
  background: #2e3436 url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat; }

为了更改背景,您必须从 /usr/share/gnome-shell/gnome-shell-theme.gresource 中提取所有内容,然后重新编译它。

您可以在 ArchWiki 上找到脚本 sh 来执行此操作并完成详细信息,我没有在此处发布说明,因为我没有测试它并且不想最终指出错误的信息。

来源:https://wiki.archlinux.org/index.php/GDM#Log-in_screen_background_image