[gnome] Fix version for gjsosk and gsconnect, add impatience

This commit is contained in:
2024-11-01 09:35:38 -04:00
parent 66e76c2764
commit 1bd891f30a
78 changed files with 804 additions and 1226 deletions

View File

@ -138,20 +138,17 @@ const _debugFunc = function (error, prefix = null) {
});
};
// Swap the function out for a no-op anonymous function for speed
globalThis._debugFunc = _debugFunc;
const settings = new Gio.Settings({
settings_schema: Config.GSCHEMA.lookup(Config.APP_ID, true),
});
settings.connect('changed::debug', (settings, key) => {
globalThis.debug = settings.get_boolean(key) ? _debugFunc : () => {};
});
if (settings.get_boolean('debug'))
globalThis.debug = _debugFunc;
else
if (settings.get_boolean('debug')) {
globalThis.debug = globalThis._debugFunc;
} else {
// Swap the function out for a no-op anonymous function for speed
globalThis.debug = () => {};
}
/**
* Start wl_clipboard if not under Gnome