TEMP: More debug

Only sabotage startup when username == 'testuser'
This commit is contained in:
Sam Thursfield 2024-06-19 11:18:43 +02:00
parent 5c621da205
commit 9f8a62e0ca

View file

@ -786,8 +786,14 @@ export const LayoutManager = GObject.registerClass({
_startupAnimationSession() { _startupAnimationSession() {
const onStopped = () => this._startupAnimationComplete(); const onStopped = () => this._startupAnimationComplete();
console.warn('WAT!! in _startupAnimationSession - Sleeping 200 seconds - trying to reproduce issue 62'); console.warn('Username:');
GLib.usleep(200 * 1000 * 1000 * 1000); console.warn(GLib.get_user_name());
if (GLib.get_user_name() == 'testuser') {
console.warn('WAT!! in _startupAnimationSession - Sleeping 200 seconds - trying to reproduce issue 62');
GLib.usleep(200 * 1000 * 1000 * 1000);
} else {
console.warn('WAT!! bypassing sabotage in _startupAnimationSession');
}
if (Main.sessionMode.hasOverview) { if (Main.sessionMode.hasOverview) {
Main.overview.runStartupAnimation(onStopped); Main.overview.runStartupAnimation(onStopped);
} else { } else {