mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Merge branch 'fallback-bg' into 'main'
background: Fall back to default wallpaper See merge request GNOME/gnome-shell!722
This commit is contained in:
commit
00d5c5d253
1 changed files with 6 additions and 0 deletions
|
|
@ -607,6 +607,12 @@ class BackgroundSource {
|
|||
: PICTURE_URI_KEY);
|
||||
|
||||
file = Gio.File.new_for_commandline_arg(uri);
|
||||
|
||||
// Fall back to default wallpaper if the file doesn't exist
|
||||
if (!file.query_exists(null)) {
|
||||
uri = this._settings.get_default_value(PICTURE_URI_KEY).unpack();
|
||||
file = Gio.File.new_for_commandline_arg(uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue