gnome-shell/js/misc
Florian Müllner 928b49705f systemActions: Create SensorProxy unconditionally
When plugging in a device with sensors that are unsupported by
iio-sensor-proxy, the proxy may quit so fast that the name disappears
from the bus before we get to construct the SensorProxy in response
to the name-appeared handler, resulting in the following warning:

JS ERROR: TypeError: this._sensorProxy is null
_sensorProxyAppeared/this._sensorProxy<@resource:///org/gnome/shell/misc/systemActions.js:217:17
_makeProxyWrapper/</<@resource:///org/gnome/gjs/modules/overrides/Gio.js:243:21

Address this by creating the proxy unconditionally instead of monitoring
the bus name, and using the g-name-owner property to determine whether
iio-sensor-proxy is active.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1357
2019-08-08 11:42:28 +00:00
..
config.js.in fileUtils: Add helper for loading D-Bus XML from resource 2018-09-17 07:34:49 +00:00
extensionUtils.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
fileUtils.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
gnomeSession.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
history.js cleanup: Prefer template strings 2019-07-05 11:32:31 +00:00
ibusManager.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
inputMethod.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
introspect.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
jsParse.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
keyboardManager.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
loginManager.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
meson.build networkAgent: Pick up VPN service dir from pkg-config 2018-01-22 08:44:19 +01:00
modemManager.js cleanup: Mark unused (but useful) variables as ignored 2019-07-24 00:28:45 +02:00
objectManager.js cleanup: Prefer template strings 2019-07-05 11:32:31 +00:00
params.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
permissionStore.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
smartcardManager.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
systemActions.js systemActions: Create SensorProxy unconditionally 2019-08-08 11:42:28 +00:00
util.js js: Use Clutter transitions for adjustment changes 2019-08-07 18:40:49 +02:00
weather.js weather: Pick up original settings values 2019-08-07 18:53:41 +00:00