aws / aws/amazon-q-developer-cli
bug: q uninstall fails when Amazon Q.app is installed in user Applications folder (~/Applications)
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
macOS 15.1.1
### Expected behaviour
## Description
When Amazon Q.app is installed in the user's Applications folder (`~/Applications`), the uninstall command fails with the error:
```
error: Invalid input method bundle: Could not load bundle for URL /Applications/Amazon Q.app/Contents/Helpers/CodeWhispererInputMethod.app
```
The command is looking for the app in the system-wide `/Applications` folder instead of the user's `~/Applications` folder where it's actually installed.
## Expected behaviour
The `q uninstall` command should successfully uninstall `Amazon Q.app` regardless of whether it's installed in the system-wide `/Applications` folder or the user's `~/Applications folder`.
Note: it is [documented by Apple][1] that `~/Applications` contains "user-specific apps".
[1]: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW15
### Actual behaviour
The `q uninstall` command fails with the error:
```
error: Invalid input method bundle: Could not load bundle for URL /Applications/Amazon Q.app/Contents/Helpers/CodeWhispererInputMethod.app
```
### Steps to reproduce
1. Install Amazon Q.app in the user's Applications folder (~/Applications) by mounting the installation image (`dmg`), then manually copying `Amazon Q.app` from the mounted image into `~/Applications` (create the folder if it doesn't exist)
2. Run `q uninstall` in the terminal
3. Observe the error message about not being able to load the bundle from /Applications/Amazon Q.app (wrong path)
### Environment
```yaml
[q-details]
version = "1.7.3"
hash = "1320eb8c18fa62c781b1cf4146b2453b71f9b225"
date = "2025-04-11T20:08:35.856711Z (3d ago)"
variant = "full"
[system-info]
os = "macOS 15.1.1 (24B91)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"
[environment]
cwd = "/Users/USER/workplace/q/src/AmazonBuilderGenAIPowerUsersQContext"
cli-path = "/Users/USER/workplace/q/src/AmazonBuilderGenAIPowerUsersQContext"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "Ghostty"
install-method = "unknown"
[env-vars]
PATH = "/Users/USER/perl5/bin:/opt/homebrew/bin:/Users/USER/.bun/bin:/Users/USER/.nvm/versions/node/v18.19.1/bin:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/Users/USER/.npm-global/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/USER/Applications/Ghostty.app/Contents/MacOS:/Users/USER/.local/bin"
QTERM_SESSION_ID = "7c3457666d8f4b2fa9b6874565a0787d"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.2"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.mitchellh.ghostty"
```
Contributor guide
Assessment
This issue has not been assessed yet.