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

utmctl can't find UTM.app #5526

Closed
boozook opened this issue Aug 4, 2023 · 2 comments
Closed

utmctl can't find UTM.app #5526

boozook opened this issue Aug 4, 2023 · 2 comments

Comments

@boozook
Copy link

boozook commented Aug 4, 2023

utmctl can't find UTM.app and seems to first arg ($0) did not used for that.
In my system UTM.app placed for one user only - at /Users/username/Applications/UTM.app but really app can be absolutely anywhere. That's wrong tactic to search the parent app in /Applications, imho.

Configuration

  • UTM Version: 4.3.4
  • macOS Version: 13.4.1 (c) (22F770820d)
  • Mac Chip: M1 Pro
utmctl list                                                                                                                                                                                                             |17:31
2023-08-04 17:31:54.725 utmctl[82677:715921] Can't find app with file path /Applications/UTM.app
Error: Application not found.
@osy
Copy link
Contributor

osy commented Aug 5, 2023

We do search for it: https://github.com/utmapp/UTM/blob/main/utmctl/UTMCtl.swift#L82

How did you run utmctl?

@boozook
Copy link
Author

boozook commented Aug 5, 2023

As recommended I’ve did symlink utmctl -> /usr/local/bin/.
cd UTM.app/Contents; ./MacOS/utmctl don't works as well as same with symlink.

There is no canonicalisation as I see so with symlink shouldn't work.

Upd:
Didn't work with symlink only. That strange because yesterday without symlink way didn't work too.
Screenshot 2023-08-05 at 11 31 42

@osy osy closed this as completed in 449bee4 Aug 5, 2023
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