mojira.dev
MCL-13852

Launcher window forgets last position after OS restart

The bug

It appears that the launcher forgets where it was last positioned when restarting the operating system / shutting down the PC. When the PC is then started again, the launcher window will always be in the top left corner.

Environment

  • Windows 10, Version 1909

Reproduction steps

  1. Move the launcher window to the middle of the screen

  2. Close the launcher and reopen it
    ✔ It remembered its last position

  3. Restart your PC

  4. Open the launcher
    ❌ It is in the top left corner again

Linked issues

Comments 3

Could you clarify what OS please?

I am currently experiencing this on macOS using launcher version 777. I don't know how useful this information is to you (in the sense I assume you don't directly interact with Cocoa to create the window on macOS but rather do it via a 3rd party mechanism), but here are the relevant NSUserDefaults key-value pairs for the Minecraft Launcher.

Here's the main window position key-value pair:

 defaults read com.mojang.minecraftlauncher NSWindow\ Frame\ MinecraftLauncher_launcher
100 567 1000 628 0 0 2048 1255

After moving the launcher from the top-left of my screen (where it starts) to the bottom-right, proving it updates:

 defaults read com.mojang.minecraftlauncher NSWindow\ Frame\ MinecraftLauncher_launcher
1030 113 1000 628 0 0 2048 1255

But then after closing and re-opening the launcher, it reverts:

 defaults read com.mojang.minecraftlauncher NSWindow\ Frame\ MinecraftLauncher_launcher
100 567 1000 628 0 0 2048 1255

Other key-value pairs:

 defaults read com.mojang.minecraftlauncher NSWindow\ Frame\ NSNavPanelAutosaveName
668 627 712 448 0 0 2048 1255
 defaults read com.mojang.minecraftlauncher NSWindow\ Frame\ MinecraftLauncher_log
100 567 1000 628 0 0 2048 1255
 defaults read com.mojang.minecraftlauncher NSNavPanelExpandedSizeForOpenMode
{712, 448}

 

Considering how long the bug has not been updated, is this still an issue in 2.3.619?

I am unable to reproduce this behavior, the launcher window remembers its last position after an OS reboot.

marcono1234

(Unassigned)

Confirmed

Retrieved