linuxmint / linuxmint/cinnamon

Switch User button on lock screen allows shutdown without warning, leading to data loss

Open
#13,095 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Description

Distribution

Mint 22.1 x86_64

Package version

6.4.8

Graphics hardware in use

Dell laptop, Intel integrated graphics

Frequency

Always

Bug description

On the lock screen, the Switch User button sends the user back to the login screen.
From there, the Shutdown and Reboot buttons are available and can be triggered without any warning about active sessions.

This causes:

Data loss risk: if shutdown/reboot is clicked (intentionally or by accident), the active user session is terminated immediately, even with unsaved work.

Multi-user risk: if a second account is started and then shuts down the system, the first user’s session is killed immediately without notifying them. Any unsaved documents are lost unless the application autosaves them.

Another user confirmed this behavior:

“If you have open documents in one account, switch to another account with the original account still running, and then perform a shutdown from the second account, the shutdown happens immediately without prompting you about the other account having open documents and programs. Any unsaved documents are lost unless the program autosaves them. This is definitely a bad thing, and I would consider it a bug that could lead to lost data.”

Steps to reproduce
  1. Log in with User A and open some documents/programs.

  2. Lock the screen.

  3. Click the Switch User button.

  4. At the login screen, either:

Click Shutdown / Reboot, OR

Log in as User B and perform a shutdown.

  1. Observe that User A’s session is terminated without any warning.
Expected behavior

The system should warn about active sessions or unsaved work before allowing shutdown/reboot.

Alternatively, shutdown/reboot from the login screen should require authentication if another session is active.

Additional information

Tested on Cinnamon 6.4.8, Mint 22.1 .

Issue is reproducible every time.

This is not a cosmetic issue — it can lead to serious data loss if unsaved documents are open.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the lock-screen to Switch User flow on Cinnamon 6.4.8, including shutdown from the login screen and from a second account. Trace the login-screen shutdown and active-session handling entry points. Done means shutdown or reboot warns about active sessions or requires authentication, with the documented reproduction steps no longer allowing silent termination.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, desktop-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.