gjs/0003-overrides-Gio-Fix-_LocalFilePrototype.patch
DistroBaker 3707e742a9 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/gjs.git#d63651fe09c7acb8b0c0c4fb2d53a8850dd970a2
2021-03-31 08:40:25 +00:00

28 lines
1.1 KiB
Diff

From ec9385b89cb2bce0615093c3c957cbbb5ea6b769 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Wed, 24 Mar 2021 23:30:19 +0100
Subject: [PATCH 4/6] overrides/Gio: Fix _LocalFilePrototype
Recent GIO versions return a GDummyFile for '', which isn't the prototype
people are expecting to promisify when using _LocalFilePrototype.
---
modules/core/overrides/Gio.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/core/overrides/Gio.js b/modules/core/overrides/Gio.js
index 10872efb..d51738e0 100644
--- a/modules/core/overrides/Gio.js
+++ b/modules/core/overrides/Gio.js
@@ -495,7 +495,7 @@ function _init() {
Gio._promisify = _promisify;
// Temporary Gio.File.prototype fix
- Gio._LocalFilePrototype = Gio.File.new_for_path('').constructor.prototype;
+ Gio._LocalFilePrototype = Gio.File.new_for_path('/').constructor.prototype;
// Override Gio.Settings and Gio.SettingsSchema - the C API asserts if
// trying to access a nonexistent schema or key, which is not handy for
--
2.30.2