d4d6ef107a
- Add no-overview@fthx until gnome-shell-extension-no-overview is available - Add gnome-headless-session@.service until GDM will provide it
27 lines
526 B
JavaScript
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);
|
|
}
|
|
}
|