linuxmint / linuxmint/mintupdate

Allow auto-refresh timespan to be greater than session length

Open
#795 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

FEATURE REQUEST
Dominant language
Python
Stars
425
Forks
190
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
Problem is that if the session length is shorter than the auto-refresh length, the update manager will never check for updates.
For example, I have set my auto-refresh to check for updates every 5 days, since I don't want to check in every session. But I shut my computer down every night. The result is that I have to check manually for updates since the auto-refresh never runs.

Describe the solution you'd like
Mintupdate should be able to keep track of when (date/time) the last update was run, regardless of whether the user has logged off or the computer is shut off. Once a new session is started, mintupdate can check to compare the last update time with the current time, and if it's greater than the auto-refresh timespan, then check for updates.

Having this will allow people to check every n days or every week for updates even if they shut their computers down in between. This approach will be more user-friendly as frequent updates can become tedious and annoying for some users.

Describe alternatives you've considered
I attempted multiple variations and combinations of settings in Auto-Refresh without success.
I have asked in multiple support forums to find out if this was just a configuration issue on my part. It was confirmed that the timespan set in the Auto-refresh setting has to be within a single session or it will not work.

Additional context
This is still an issue as of Mint 21.1

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 tracing mintupdate's auto-refresh behavior and how the current session-based interval is evaluated. Review where the last update check could persist across logouts and shutdowns; done means a new session compares that timestamp with the configured timespan and checks for updates when the interval has elapsed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.