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

Can't uninstall Apps #637

Open
1 of 4 tasks
RixzZ opened this issue Nov 14, 2024 · 5 comments
Open
1 of 4 tasks

Can't uninstall Apps #637

RixzZ opened this issue Nov 14, 2024 · 5 comments

Comments

@RixzZ
Copy link

RixzZ commented Nov 14, 2024

Your Environment

  • mas version: 1.8.7
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): macOS 14.7 (23H124)

mas Install Method

  • brew install mas (homebrew-core)
  • mas-cli/tap
  • .pkg installer from releases
  • Built from source
    • Fork/branch: ? (e.g. mas-cli/main)
    • Xcode version: 10.?

Describe the Bug

When trying to uninstall apps (previously installed from the GUI, if that matters somehow), it errors with the following:

Error: Runtime Error: Failed to revert ownership of deleted '/Applications/GarageBand.app' back to uid 501 & gid 20: delete result did not have a URL

To Reproduce

Steps to reproduce the behavior:

  1. Execute sudo mas uninstall 682658836.
  2. Provide password if requested.

Expected Behavior

It should be able to uninstall it.

Actual Behavior

It errors out and apparently does nothing to the app.

Screenshots, Terminal Output

% sudo mas uninstall 682658836
Error: Runtime Error: Failed to revert ownership of deleted '/Applications/GarageBand.app' back to uid 501 & gid 20: delete result did not have a URL

Additional Context

Add any other context about the problem here.

N/A

Did it work in a previous version?

I don't know. Just started using 'mas'.

@RixzZ RixzZ added the 🐛 bug label Nov 14, 2024
@rgoldberg
Copy link
Contributor

@RixzZ Did the app get moved to the trash, or did it remain under /Applications?

@RixzZ
Copy link
Author

RixzZ commented Nov 14, 2024

It's still in /Applications.

@rgoldberg
Copy link
Contributor

@RixzZ was the app running while you uninstalled it?

Apps are deleted by using a scripting bridge to Finder. The actual delete process is fairly opaque. No errors could have been thrown, the Finder delete() function doesn't seem to have deleted the app folder for you, and the object returned by that function didn't have a file URL for the app folder since it wasn't deleted.

Since deletion works for me (albeit on a different version on macOS), it will be hard to investigate this without being able to reproduce it somewhere where I can debug, or without learning about reflection-like capabilities of Swift to output more info in this circumstance for you to send to me after running it.

Will get to this in a bit due to other more pressing issues.

@RixzZ
Copy link
Author

RixzZ commented Nov 15, 2024

No... in fact, I don't think it was ever opened since it was installed.

Also, the error thrown it's instant. It doesn't seem to do much before throwing it.

This Mac it updated with Open Core to a version not officially supported by that hardware (2014 Mac Mini).
I didn't detect any limitation with any software (Apple's or 3rd Party), so I don't think it matters, but anyway, just in case.

@rgoldberg
Copy link
Contributor

rgoldberg commented Nov 15, 2024

Thanks for info.

A successful uninstall should also be fairly instantaneous.

Will probably be a while before I can get to investigating this.

@rgoldberg rgoldberg changed the title 🐛 [BUG] Can't uninstall Apps Can't uninstall Apps Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants