Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update start menu shortcuts on pacman -Syu #65

Open
stertingen opened this issue Jul 6, 2023 · 3 comments
Open

Update start menu shortcuts on pacman -Syu #65

stertingen opened this issue Jul 6, 2023 · 3 comments

Comments

@stertingen
Copy link

Not sure if this is the right place to suggest this.

Over time, new MSYS profiles are created or updated.
The start menu shortcuts should be updated accordingly when using pacman -Syu.

For example, I have the profiles clang32, clang64, clangarm64, mingw32, mingw64, msys2 and ucrt64 in my installation directory.
In my start menu, there is only mingw32, mingw64, msys2 and ucrt64; these are the profiles from 2021.

@Biswa96
Copy link
Member

Biswa96 commented Jul 6, 2023

pacman itself does not and probably should not add files outside of msys2 installation. The shortcuts are installed by the msys2 installer at first install time. You can manually create and add shortcuts in Start Menu.

@stertingen
Copy link
Author

I see. Could the installer provide an option to update the affected on an existing installation?

Currently, the installer does not proceed when there is already an installation at C:\msys64, which also probably generates an error when updating MSYS using winget update msys2.msys2 (winget finds a new available version for MSYS but cannot update it).

Another approach could be to let the installer update the installed version number and start menu shortcuts while leaving the MSYS packages to pacman. I'm not sure how this would affect user experience and update expectations; users updating via the installer could expect updates of the MSYS packages as well, so in that case the installer should emit a warning that the packages need to be updated separately.

@Biswa96
Copy link
Member

Biswa96 commented Jul 6, 2023

Could the installer provide an option to update the affected on an existing installation?

I am not sure about that kind of feature. Others may help with that.

Basically, users do not need to reinstall msys2 when a new installer is released. Only packages need to be updated with pacman. But I agree with your views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants