dbusServices: Always import dbus errors

This makes sure custom errors are registered correctly, even when
the service doesn't do anything other than passing them on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>
This commit is contained in:
Florian Müllner 2024-01-31 16:36:55 +01:00
parent ca0ee2ae90
commit 9e96e8495b
5 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@ import GLib from 'gi://GLib';
import {programArgs} from 'system';
import './misc/dbusErrors.js';
const Signals = imports.signals;
const IDLE_SHUTDOWN_TIME = 2; // s

View File

@ -6,6 +6,7 @@
<file>dbusService.js</file>
<file>misc/config.js</file>
<file>misc/dbusErrors.js</file>
<file>misc/dbusUtils.js</file>
</gresource>
</gresources>

View File

@ -12,6 +12,7 @@
<file>misc/config.js</file>
<file>misc/errorUtils.js</file>
<file>misc/extensionUtils.js</file>
<file>misc/dbusErrors.js</file>
<file>misc/dbusUtils.js</file>
<file>misc/params.js</file>
</gresource>

View File

@ -6,6 +6,7 @@
<file>dbusService.js</file>
<file>misc/config.js</file>
<file>misc/dbusErrors.js</file>
<file>misc/dbusUtils.js</file>
</gresource>
</gresources>

View File

@ -7,6 +7,7 @@
<file>misc/config.js</file>
<file>misc/dbusUtils.js</file>
<file>misc/dbusErrors.js</file>
<file>misc/signals.js</file>
<file>misc/signalTracker.js</file>
</gresource>