Kali Linux 自定义GDM3登录背景图片和LOGO
目标
-
- 更改 gdm3 登录页面背景图片
-
- 更改 gdm3 登录页面显示LOGO
预备
- Kali Linux (操作系统)
- GDM3 (显示管理器)
- Gnome 桌面环境(可选)
- Python3 (脚本语言, 以root或sudo权限执行)
更改 GDM3登录页面背景图片
import os
import subprocess
import re
import shutil
current_dir = os.path.abspath(os.curdir)
gnome_shell_resouce_path = '''/usr/share/gnome-shell/gnome-shell-theme.gresource'''
gnome_shell_workdir = os.path.join(current_dir, 'ShellTheme')
gnome_shell_theme_dir = os.path.join(gnome_shell_workdir, 'org/gnome/shell/theme/')
gnome_shell_resource_xml = os.path.join(gnome_shell_workdir, 'org/gnome/shell/theme/gnome-shell-theme.gresource.xml')
gnome_shell_theme_gnome_shell_css = os.path.join(gnome_shell_workdir, 'org/gnome/shell/theme/gnome-shell.css')
background_png_path = '''/home/Pydes/Pictures/wallpaper/background.png'''
print('>_ Png Path: {}'.format(background_png_path))
lockDialogGroupConent = '''loc