menuinst icon indicating copy to clipboard operation
menuinst copied to clipboard

Installation of MacOS apps fail when app already exists

Open marcoesters opened this issue 9 months ago • 0 comments

Checklist

  • [X] I added a descriptive title
  • [X] I searched open reports and couldn't find a duplicate

What happened?

On Windows and Linux, shortcuts are overwritten when they already exist. On MacOS, menuinst exits with an error because it cannot create the Resources directory inside the app. This is due to the following lines: https://github.com/conda/menuinst/blob/main/menuinst/platforms/osx.py#L107-L108

for path in paths:
    path.mkdir(parents=True, exist_ok=False)

The MacOS app should be removed before installing a new one to make the behavior consistent.

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

marcoesters avatar May 06 '24 18:05 marcoesters