Skip to content

"Old agent installation" error is not always triggered when expected #795

Closed
@seaxwi

Description

@seaxwi

Describe the problem

The new DMG file in ArduinoCreateAgent-1.3.1-osx-amd64-installer.dmg is a great improvement from the old installer. But since the new installation path (/Application/ArduinoCreateAgent.app) is different from the older one (/Users/sebastianwikstrom/Applications/ArduinoCreateAgent), this is will not result in the old application being overwritten. Instead, the user has to manually remove the old application.

In some cases, the presense of an older Create Agent version can trigger this error:

error

Problem 1: Assuming the default installation path

It seems like the trigger for the error is the presence of an ~/Applications/ArduinoCreateAgent folder.

An older version of the Create Agent can be present and running from a different location, without triggering the error. This results in two instances of the application running:

Screenshot 2023-06-01 at 15 35 18

On the other hand, the error is produced even if the ~/Applications/ArduinoCreateAgent folder is empty. This seems unnecessary.

Problem 2: Does not trigger if Create Agent is opened via Spotlight when a different version is running

Opening the application via Spotlight does not display the error or launch the application.

Screenshot 2023-06-01 at 14 41 17

To reproduce

Running two instances at the same time:

  1. Install or move ArduinoCreateAgent.app (1.2.7) to a path that is not ~/Applications/ArduinoCreateAgent
  2. Run ArduinoCreateAgent.app (1.2.7) so it appears in the menu bar
  3. If the ~/Applications/ArduinoCreateAgent folder exists, remove it.
  4. Run the new ArduinoCreateAgent.app (1.3.1)

🐛 Another instance of the application starts, with two Create Agent icons now appearing in the menu bar

Spotlight issue:

  1. Have both 1.2.7 and 1.3.1 installed.
  2. Run 1.2.7
  3. Press Command + Space to open Spotlight
  4. Search for 'ArduinoCreateAgent'
  5. Open the newer version (in Applications by default)

🐛 Nothing happens

Expected behavior

  • I think the application shouldn't care about the presence of any particular file or folder. I would only expect to get an error if another Create Agent process is currently running.
  • Opening the application via Spotlight should not prevent the error from being displayed.

Arduino Create Agent version

1.3.1

Operating system

macOS

Operating system version

13.2.1 (22D68)

Browser

Chrome

Browser version

Version 113.0.5672.126 (Official Build) (arm64)

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions