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

标签 fedora

有没有人知道如何在 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 文件中。

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

$ 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

关于fedora - 如何更改 Fedora 22 中的 GDM 登录背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31304138/

相关文章:

linux - Fedora 20如何在启动结束时运行脚本

linux - PiDora PAM 允许 root 登录,但有时会拒绝

linux - 高资源使用率程序停止/崩溃 linux

php - file_put_contents 在服务器上不工作

java - 部署 GWT 项目的问题

linux - 内部服务器错误

linux - 如何在 Perl 中处理来自连续流程管道的更新

c++ - Monodevelop C++ 调试问题

python - 使用 pip 在 Fedora 19 上安装 Numpy

gcc -/usr/bin/ld : cannot find -lauparse