ibus-anthy/tests/ibus-desktop-testing/tmp/no-overview@fthx/extension.js
Takao Fujiwara 2232576cc0 Update CI for RHEL10
- Add no-overview@fthx until gnome-shell-extension-no-overview is available
- Add gnome-headless-session@.service until GDM will provide it

Resolves: RHEL-58993
2024-09-17 10:24:19 +09:00

27 lines
526 B
JavaScript

/*
No overview at start-up
GNOME Shell 45+ extension
Contributors: @fthx
License: GPL v3
*/
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
export default class NoOverviewExtension {
enable() {
if (!Main.layoutManager._startingUp) {
return;
}
Main.layoutManager.connectObject(
'startup-complete',
() => Main.overview.hide(),
this
);
}
disable() {
Main.layoutManager.disconnectObject(this);
}
}