File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,20 +4,28 @@ import { Module } from '../module.ts';
44
55/**
66 * NoOverview Module
7- *
8- * Automatically hides the GNOME Overview on startup.
9- * This provides a cleaner desktop experience for users who prefer not to use the overview.
10- * Note: This module only hides the overview on startup. Users can still access it via hotkeys or gestures.
7+ *
8+ * Prevents the GNOME Overview from showing at startup by temporarily disabling
9+ * `sessionMode.hasOverview`, which causes the startup animation to skip the
10+ * overview transition entirely. Once startup completes, `hasOverview` is restored
11+ * so the overview remains accessible via hotkeys, gestures, and the Activities button.
1112 */
1213export class NoOverview extends Module {
1314 override enable ( ) : void {
15+ if ( ! Main . layoutManager . _startingUp ) return ;
16+
17+ Main . sessionMode . hasOverview = false ;
18+
1419 Main . layoutManager . connectObject (
15- 'startup-complete' , ( ) => Main . overview . hide ( ) ,
20+ 'startup-complete' , ( ) => {
21+ Main . sessionMode . hasOverview = true ;
22+ } ,
1623 this
1724 ) ;
1825 }
1926
2027 override disable ( ) : void {
28+ Main . sessionMode . hasOverview = true ;
2129 Main . layoutManager . disconnectObject ( this ) ;
2230 }
2331}
You can’t perform that action at this time.
0 commit comments