linuxmint / linuxmint/cinnamon

Inform user that updates are running when trying to shutdown the system

Open
#10,282 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

 * Cinnamon version: 5.0.5
 * Distribution: Mint 20.2
 * Graphics hardware *and* driver used
 * 64 bit

Issue
When automatic updates are running and the user tries to shutdown the computer, the shutdown and restart buttons are just missing. This is especially confusing for end users who don't have technical insights (and those are the target group of the automatic updates feature, I configure automatic updates for them because I cannot require them to install updates manually). It would be good to show a small information text why the buttons are not visible.
Bildschirmfoto vom 2021-08-20 08-58-54

Steps to reproduce
Enable automatic updates in Mint Update Manager, then wait until automatic update run starts or force it executing /usr/lib/linuxmint/mintUpdate/automatic_upgrades.py.

Expected behaviour
An information text should be displayed in the shutdown options window, that shutdown/restart is currently not possible because automatic updates are running.

Possible solution
Currently, the shutdown/reboot buttons are hidden by creating the file /etc/polkit-1/localauthority/90-mandatory.d/99-mintupdate-temporary.pkla from /usr/share/linuxmint/mintupdate/automation/99-mintupdate-temporary.pkla in automatic_upgrades.py.

In addition to that, the actual update script is executed using systemd-inhibit --why="Performing automatic updates" /usr/bin/mintupdate-cli. When opening the shutdown/reboot dialog, Cinnamon could check systemd-inhibit --list and display the message which was set by automatic_upgrades.py.

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 with the shutdown/reboot dialog in Cinnamon and the automatic update entry point /usr/lib/linuxmint/mintUpdate/automatic_upgrades.py. Review how systemd-inhibit --why="Performing automatic updates" /usr/bin/mintupdate-cli and systemd-inhibit --list expose the active reason. Done means the dialog explains that shutdown or restart is unavailable while automatic updates are running.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.