[gnome-shell/wip/exalm/query-exists] background: Check if the file exists before loading it
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/exalm/query-exists] background: Check if the file exists before loading it
- Date: Sat, 12 Feb 2022 13:34:29 +0000 (UTC)
commit d8fcac708ca74903f062eb43c2e4dd9d2d9e7246
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Feb 12 18:33:51 2022 +0500
background: Check if the file exists before loading it
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5062
js/ui/background.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index 21359d0a83..5944cd183d 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -514,7 +514,7 @@ var Background = GObject.registerClass({
this._loadPattern();
- if (!this._file) {
+ if (!this._file || !this._file.query_exists(null)) {
this._setLoaded();
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]