This article or section needs to be translated.
Notes: 文章大部分内容未被翻译。 (Discuss in Talk:GDM (简体中文)#)
翻译状态:本文是 GDM 的翻译。上次翻译日期:2018-08-08。如果英文版本有所更改,则您可以帮助同步翻译。
来自GDM - GNOME显示管理器:“GNOME显示管理器(GDM)是一个管理图形显示服务和处理图形用户登录的程序。
显示管理器s provide X Window System and Wayland users with a graphical login prompt.
安装
可通过安装
如果你更希望使用在GNOME 2中使用的旧的GDM和它的实用配置程序,安装AUR软件包。请注意,除非另有说明,否则本条目的其余部分均为讨论当前的GDM,而非旧的GDM。
您可能还希望安装以下内容:
gdm3setup — 一个用来配置GDM3的接口,有自动登陆选项并且能更改Shell的主题
开始
可通过enablegdm.service来在开机时启动GDM。
自动启动软件
One might want to autostart certain commands, such as xrandr for instance, on login. This can be achieved by adding a command or script to a location that is sourced by the display manager. See Display manager#Autostarting for a list of supported locations.
Note: /etc/gdm/Init目录不再是受支持的位置,参见[1].
配置
登录页面背景图片
The factual accuracy of this article or section is disputed.
Reason: Configuration is not persistent and will be gone after gdm update. Needs to be rewritten to enable user-themes gnome-shell extension for gdm user and use custom theme and set gsetting to use that theme (Discuss in Talk:GDM (简体中文)#)
Note:
自GNOME 3.16开始,GNOME Shell主题被存储为二进制文件。 (gresource)
This change will be overwritten on subsequent updates of
Firstly, you need to extract the existing GNOME Shell theme to a folder in your home directory. You can do this using the following script:
extractgst.sh
#!/bin/sh
gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
workdir=${HOME}/shell-theme
for r in `gresource list $gst`; do
r=${r#\/org\/gnome\/shell/}
if [ ! -d $workdir/${r%/*} ]; then
mkdir -p $workdir/${r%/*}
fi
done
for r in `gresource list $gst`; do
gresource extract $gst $r >$workdir/${r#\/org\/gnome\/shell/}
done
Navigate to the created directory. You should find that the theme files have been extracted to it. Now copy your preferred background image to this directory.
Next, you need to create a file in the directory with the following content:
gnome-shell-theme.gresource.xml
calendar-arrow-left.svg
calendar-arrow-right.svg
calendar-today.svg
checkbox-focused.svg
checkbox-off-focused.svg
checkbox-off.svg
checkbox.svg
close.svg
close-window-active.svg
close-window-hover.svg
close-window.svg
corner-ripple-ltr.png
corner-ripple-rtl.png
dash-placeholder.svg
filter-selected-ltr.svg
filter-selected-rtl.svg
gnome-shell.css
gnome-shell-high-contrast.css
icons/message-indicator-symboli