Linux - "Keep me logged in" doesn't work
Steps to reproduce
- Start the Minecraft Launcher on Linux while logged out of Mojang account
- In this screen, ensure that "Keep me logged in" is checked:

- Enter username and password as normal and select "log in"
- Play the game as normal
Behaviour
After a certain amount of time (seems to be around a day - possibly triggered by a system reboot, though I can't confirm this) I am logged out of my account automatically, despite having checked "keep me logged in"
I would expect that "keep me logged in" would keep me logged in for longer than that, and indeed on my old Windows machine I was almost never logged out.
Any idea what might be causing this?
Environment
JAVA VERSION
Openjdk 11.0.9
LINUX OS DETAILS
Kernel: 5.0.0-32-generic x86_64
Distro: Linux Mint 19.3 Tricia
Desktop: Cinnamon 4.4.8
Base: Ubuntu 18.04 bionic
Created Issue:
Linux - "Keep me logged in" doesn't work
Steps to reproduce
- Start the Minecraft Launcher on Linux while logged out of Mojang account
- In this screen, ensure that "Keep me logged in" is checked:
- Enter username and password as normal and select "log in"
- Play the game as normal
Behaviour
After a certain amount of time (seems to be around a day - possibly triggered by a system reboot, though I can't confirm this) I am logged out of my account automatically, despite having checked "keep me logged in"
I would expect that "keep me logged in" would keep me logged in for longer than that, and indeed on my old Windows machine I was almost never logged out.
Any idea what might be causing this?
Environment
JAVA VERSION
Openjdk 11.0.9LINUX OS DETAILS
Kernel: 5.0.0-32-generic x86_64
Distro: Linux Mint 19.3 Tricia
Desktop: Cinnamon 4.4.8
Base: Ubuntu 18.04 bionic
Can you please keep an eye on ~/.minecraft/launcher_profiles.json between your logins? It sounds like this file gets removed or corrupted after your system reboot. It might help identify the problem.
I can confirm this issue. After every reboot, the launcher is logged out. launcher_profiles.json exists and looks fine, but I noticed the system only asks for the password of the keyring after logging in. I'd expect if it does anything with that operating system feature the launchr should probably check before asking for Minecraft login details.
This is on launcher version 2.2.3963, using Linux Mint 20.2 Cinnamon with kernel 5.4.0-86-generic.
The behavior changed with the latest version of the launcher, as now the keyring password query pops up before showing a potential list of accounts. However, when clicking on my account the launcher pops up a red notice in the top right corner telling me that something went wrong, then proceeds to the screen where I need to select whether I want to log in with a Microsoft or Mojang account.
Something in the launcher clearly has an issue with reading the stored credentials after a reboot, and its error handling is to wipe its entire account memory and let me start over by entering the account name itself. I'd expect it'd at least remember that part (which it very clearly still knows about) and pass it to the MS account login procedure.
Launcher version: 2.2.7266, updated Linux kernel version: 5.4.0-90-generic
Still happens in launcher version 2.2.8540, running Linux kernel 5.4.0-92-generic. Now it at least remembers there have been earlier logins with the account, but it still requires me to go through the entire authentication procedure.
Issue will no longer occur, as the migration is now obligatory for the mojang accounts. Closing the issue as invalid.