Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 9. Customizing desktop appearance and branding
As a system administrator, you can configure the default appearance and branding of the GNOME interface for all users on the system.
9.1. Customizing desktop backgrounds Link kopierenLink in die Zwischenablage kopiert!
As a system administrator, you can configure the default desktop background, add extra backgrounds, or add multiple backgrounds available to all users of the system.
By default, users are permitted to change the background. As an administrator, you can prevent users from changing the background with the settings in the locks
directory.
9.1.1. Customizing the default desktop background Link kopierenLink in die Zwischenablage kopiert!
You can configure the default desktop background and its appearance by setting the relevant GSettings keys in the org.gnome.desktop.background
schema.
Procedure
Create a local database for machine-wide settings in
/etc/dconf/db/local.d/00-background
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Specify the path to the desktop background image file.
- 2
- Specify one of the rendering options for the background image:
-
none
-
wallpaper
-
centered
-
scaled
-
stretched
-
zoom
-
spanned
-
- 3
- Specify the left or top color when drawing gradients or the solid color.
- 4
- Specify the right or bottom color when drawing gradients.
Optional: If you want to prevent a user from changing the default background, override the user’s setting in the
/etc/dconf/db/local.d/locks/background
file:List the keys used to configure the desktop background
# List the keys used to configure the desktop background /org/gnome/desktop/background/picture-uri /org/gnome/desktop/background/picture-options /org/gnome/desktop/background/primary-color /org/gnome/desktop/background/secondary-color
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update the system databases:
dconf update
# dconf update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Users must log out and back in again before the system-wide settings take effect.
9.1.2. Adding extra backgrounds Link kopierenLink in die Zwischenablage kopiert!
You can make extra backgrounds available to users on your system.
Procedure
-
Create the
/usr/share/gnome-background-properties/extra-backgrounds.xml
file. In the new file, specify the extra background files and their appearance in the following format:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The new backgrounds are now available to all users in the Background section of the Settings application.
9.1.3. Frequently used background schema keys Link kopierenLink in die Zwischenablage kopiert!
The following configuration controls the behavior of desktop backgrounds in the GSettings system.
Key name | XML name | Possible values | Description |
---|---|---|---|
|
|
|
Determines how the image set by |
|
|
| Determines the shade of the background color. |
|
|
default: | Left or Top color when drawing gradients, or the solid color. |
|
|
default: | Right or Bottom color when drawing gradients, not used for solid color. |
Example 9.1. An extra backgrounds file with one <wallpaper>
element
Example 9.2. An extra backgrounds file with two <wallpaper>
elements
In one configuration file, you can specify multiple <wallpaper>
elements to add more backgrounds as shown in the following example with two <wallpaper>
elements, adding two different backgrounds.
9.1.4. Setting the screen shield Link kopierenLink in die Zwischenablage kopiert!
Screen shield is the screen that slides down when you lock the system. You can set a default screen shield picture for all users on the system.
Procedure
Create the
/etc/dconf/db/gdm.d/01-screensaver
file:[org/gnome/desktop/screensaver] picture-uri='file://<path_to_your_background_file>'
[org/gnome/desktop/screensaver] picture-uri='file://<path_to_your_background_file>'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<path_to_your_background_file>
with the absolute path to the image file that you want to use as the default screen shield. Supported formats are PNG, JPG, JPEG, and TGA. Note that the screen shield scales your image if necessary to fit the screen.Update the system databases:
dconf update
# dconf update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Users must log out and back in again before the system-wide settings take effect.
Troubleshooting
If the screen shield does not update:
Verify that you have updated the system databases:
dconf update
# dconf update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Try restarting GDM:
systemctl restart gdm.service
# systemctl restart gdm.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow WarningRestarting the
gdm
service terminates all currently running GNOME sessions of all desktop users who are logged in. This might result in users losing unsaved data.
9.2. Customizing the branding of the login screen Link kopierenLink in die Zwischenablage kopiert!
You can change the logo that displays on the GNOME login screen (GDM) by using a dconf
profile.
Prerequisites
- Prepare an image file in any of the supported formats: ANI, BPM, GIF, GTIFF, ICNS, ICO, JPEG, JPEG 2000, PCX, PNM, PBM, PGM, PPM, RAS, SVG, TGA, TIFF, WBMP, XBM, or XPM.
- The image must be around 48 pixels in height. If it is significantly larger, it will exceed the logo area.
-
Store the image file in a location that the
gdm
user can access. For example, select a universally readable system directory such as/opt/
or/usr/local/
.
Procedure
Create the
/etc/dconf/db/gdm.d/01-override-logo
configuration file with the following content:[org/gnome/login-screen] logo=<path_to_logo>
[org/gnome/login-screen] logo=<path_to_logo>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<path_to_logo>
with the full path to the image file that you want to use as the login screen logo.Update the system databases:
dconf update
# dconf update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
- Log out or otherwise switch to the login screen.
- Check if the selected logo is displayed.
If the logo does not update, restart GDM:
systemctl restart gdm
# systemctl restart gdm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow WarningRestarting the
gdm
service terminates all currently running GNOME sessions of all desktop users who are logged in. This might result in users losing unsaved data.