ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
20.34k stars 823 forks source link

Implement an “Update” Button in the Three-Dot Menu #2892

Closed stneric closed 4 months ago

stneric commented 4 months ago

Description

I think it would be great, if the browser had an update feature. (not just for the the command line installed versions)

Who's implementing?

The problem

Since I don't really have much time right now, I'm not sure I could implement that myself so I'm posing it here.

Basically (for anyone that hasn't installed the browser via the cli) there should be an option to update ugc from the three-dot menu.

Possible solutions

  1. Determine the current version of Chromium.
  2. Check for the latest version available. (something like std::string url = "https://api.github.com/repos/" + githubRepo + "/releases/latest";) and compare the versions
  3. Download the latest version if there is a newer release.
  4. Backup user data to ensure bookmarks and other settings are preserved.
  5. Install the new version and restore the user data if necessary. (something like rm -rf ~/.config/chromium mv ~/.config/chromium_backup ~/.config/chromium)

(I'm sure there's more that goes into it, this is just a basic high level description)

Alternatives

The only real alternative is to install it via cli and a package manager like brew or apt and update it that way

Additional context

No response

PF4Public commented 4 months ago

Please do search through existing issues before filing a new one.

Duplicate of #174