Skip to content

Update Fleet-maintained apps - #46417

Closed
fleet-release wants to merge 1 commit into
mainfrom
fma-2605290225
Closed

Update Fleet-maintained apps#46417
fleet-release wants to merge 1 commit into
mainfrom
fma-2605290225

Conversation

@fleet-release

@fleet-release fleet-release commented May 29, 2026

Copy link
Copy Markdown
Contributor

Automated ingestion of latest Fleet-maintained app data.

Summary by CodeRabbit

  • Chores
    • Updated package metadata for multiple applications: Brave Browser, Claude, Dialpad, Dropbox, Figma, LastPass, Microsoft Edge, Notion Calendar, Parallels Desktop, Tailscale, and Zed to their latest versions.
    • Enhanced uninstallation process for Parallels Desktop on macOS.

Review Change Stack

Generated automatically with cmd/maintained-apps.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@github-actions

Copy link
Copy Markdown
Contributor

Script Diff Results

ee/maintained-apps/outputs/brave-browser/windows.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/claude/windows.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/dialpad/windows.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/dropbox/windows.json

=== Install Script (no changes) ===
=== Uninstall // d941db84 -> 9bebe5c6 ===

--- /tmp/old.TrPBRC	2026-05-29 02:28:32.009548766 +0000
+++ /tmp/new.9QfCbm	2026-05-29 02:28:32.009548766 +0000
@@ -1,4 +1,4 @@
-$product_code = '{4FACD0F4-1AE8-5B27-9912-CCF9EFF75582}'
+$product_code = '{7113B28E-75FC-50C6-98DE-854CAD48372B}'
 $timeoutSeconds = 300  # 5 minute timeout
 
 # Fleet uninstalls app using product code that's extracted on upload

ee/maintained-apps/outputs/figma/darwin.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/lastpass/windows.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/microsoft-edge/darwin.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/notion-calendar/darwin.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/parallels/darwin.json

=== Install Script (no changes) ===
=== Uninstall // 9c10ac4b -> 038b4616 ===

--- /tmp/old.aBhcDJ	2026-05-29 02:28:32.201547335 +0000
+++ /tmp/new.p50ng4	2026-05-29 02:28:32.202547328 +0000
@@ -72,6 +72,7 @@
 sudo rm -rf '/usr/local/bin/prl_convert'
 sudo rm -rf '/usr/local/bin/prl_disk_tool'
 sudo rm -rf '/usr/local/bin/prl_perf_ctl'
+sudo rm -rf '/usr/local/bin/prlcopy'
 sudo rm -rf '/usr/local/bin/prlcore2dmp'
 sudo rm -rf '/usr/local/bin/prlctl'
 sudo rm -rf '/usr/local/bin/prlexec'

ee/maintained-apps/outputs/tailscale/windows.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

ee/maintained-apps/outputs/zed/darwin.json

=== Install Script (no changes) ===
=== Uninstall Script (no changes) ===

@coderabbitai

coderabbitai Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request updates the maintained-apps registry with version bumps and installer metadata for eleven applications across Windows and macOS platforms. Windows apps include Brave Browser, Claude, Dialpad, LastPass, and Tailscale, each advancing to newer minor or patch versions. macOS apps include Figma, Microsoft Edge, Notion Calendar, and Zed with similar version-specific metadata changes. Additionally, Dropbox updates its uninstall script reference and MSI product code, and Parallels introduces revised uninstall logic for detecting the console user and removing a broader set of application artifacts.

Possibly related PRs

  • fleetdm/fleet#45933: Updates Brave Browser Windows version, installer URL, and SHA-256 checksum in the maintained-apps manifest.
  • fleetdm/fleet#44977: Updates Microsoft Edge macOS version, installer URL, and SHA-256 checksum in maintained-apps outputs.
  • fleetdm/fleet#45972: Updates Zed macOS version, installer URL, and SHA-256 checksum in the maintained-apps registry.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete; it lacks the required checklist items from the template, such as changes files, testing, database migrations, and platform compatibility verification. Complete the pull request description by adding the required checklist sections from the template, or remove inapplicable items. Specify what testing was performed and confirm any necessary validations.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Update Fleet-maintained apps' clearly and concisely summarizes the main change of updating application metadata across multiple maintained apps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fma-2605290225

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ee/maintained-apps/outputs/parallels/darwin.json`:
- Around line 11-19: The uninstall script uses literal '~' and quoted patterns
so globs never expand (see trash(), LOGGED_IN_USER and the sudo rmdir calls);
change all literal-tilde targets to an expanded
user_home="/Users/$LOGGED_IN_USER" and use that variable in rmdir/remove calls,
and rewrite trash() to accept a pattern, expand leading '~' to
/Users/$LOGGED_IN_USER, enable shell globbing (nullglob) to collect matches into
an array, then iterate over matches and move each resolved file into the user's
.Trash with the timestamp/rand suffix (do not quote the pattern before
expansion); update calls like trash $LOGGED_IN_USER
'~/Library/Containers/com.parallels.desktop*' to rely on the new trash()
behavior so wildcards are actually processed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5da3b83e-304c-4fcb-84b2-4d44c8dfae71

📥 Commits

Reviewing files that changed from the base of the PR and between 8feb3bd and c5fdd6e.

📒 Files selected for processing (11)
  • ee/maintained-apps/outputs/brave-browser/windows.json
  • ee/maintained-apps/outputs/claude/windows.json
  • ee/maintained-apps/outputs/dialpad/windows.json
  • ee/maintained-apps/outputs/dropbox/windows.json
  • ee/maintained-apps/outputs/figma/darwin.json
  • ee/maintained-apps/outputs/lastpass/windows.json
  • ee/maintained-apps/outputs/microsoft-edge/darwin.json
  • ee/maintained-apps/outputs/notion-calendar/darwin.json
  • ee/maintained-apps/outputs/parallels/darwin.json
  • ee/maintained-apps/outputs/tailscale/windows.json
  • ee/maintained-apps/outputs/zed/darwin.json

Comment on lines +11 to +19
"uninstall_script_ref": "038b4616",
"sha256": "417af3750e9e6378a4830303d75ff312461abbf5f49a69b6ba4e8ef76afcc35a",
"default_categories": [
"Productivity"
]
}
],
"refs": {
"1142d1f5": "#!/bin/bash\n\n# variables\nAPPDIR=\"/Applications/\"\nTMPDIR=$(dirname \"$(realpath \"$INSTALLER_PATH\")\")\n# functions\n\nquit_and_track_application() {\n local bundle_id=\"$1\"\n local var_name=\"APP_WAS_RUNNING_$(echo \"$bundle_id\" | tr '.-' '__')\"\n local timeout_duration=10\n\n # check if the application is running\n local app_running\n app_running=$(osascript -e \"application id \\\"$bundle_id\\\" is running\" 2>/dev/null)\n if [[ \"$app_running\" != \"true\" ]]; then\n eval \"export $var_name=0\"\n return\n fi\n\n local console_user\n console_user=$(stat -f \"%Su\" /dev/console)\n if [[ -z \"$console_user\" || \"$console_user\" == \"root\" || \"$console_user\" == \"loginwindow\" ]]; then\n echo \"Not logged into a non-root GUI; skipping quitting application ID '$bundle_id'.\"\n eval \"export $var_name=0\"\n return\n fi\n\n # App was running, mark it for relaunch\n eval \"export $var_name=1\"\n echo \"Application '$bundle_id' was running; will relaunch after installation.\"\n\n echo \"Quitting application '$bundle_id'...\"\n\n # try to quit the application within the timeout period\n local quit_success=false\n SECONDS=0\n while (( SECONDS < timeout_duration )); do\n if osascript -e \"tell application id \\\"$bundle_id\\\" to quit\" >/dev/null 2>&1; then\n if ! pgrep -f \"$bundle_id\" >/dev/null 2>&1; then\n echo \"Application '$bundle_id' quit successfully.\"\n quit_success=true\n break\n fi\n fi\n sleep 1\n done\n\n if [[ \"$quit_success\" = false ]]; then\n echo \"Application '$bundle_id' did not quit.\"\n fi\n}\n\n\nrelaunch_application() {\n local bundle_id=\"$1\"\n local var_name=\"APP_WAS_RUNNING_$(echo \"$bundle_id\" | tr '.-' '__')\"\n local was_running\n\n # Check if the app was running before installation\n eval \"was_running=\\$$var_name\"\n if [[ \"$was_running\" != \"1\" ]]; then\n return\n fi\n\n local console_user\n console_user=$(stat -f \"%Su\" /dev/console)\n if [[ -z \"$console_user\" || \"$console_user\" == \"root\" || \"$console_user\" == \"loginwindow\" ]]; then\n echo \"Not logged into a non-root GUI; skipping relaunching application ID '$bundle_id'.\"\n return\n fi\n\n echo \"Relaunching application '$bundle_id'...\"\n\n # Launch the app in the logged-in user's GUI session. Apps launched by root\n # won't register with the user's Dock/GUI, so run 'open' as the console user.\n # Use 'launchctl asuser' to bootstrap into the console user's Mach namespace\n # and GUI session — 'sudo -u' alone doesn't do this, which can cause\n # LSOpenURLsWithRole() failures even when 'open' exits 0.\n local open_status=0\n if [[ $EUID -eq 0 ]]; then\n local console_uid\n console_uid=$(id -u \"$console_user\")\n /bin/launchctl asuser \"$console_uid\" sudo -u \"$console_user\" open -b \"$bundle_id\" >/dev/null 2>&1 || open_status=$?\n else\n open -b \"$bundle_id\" >/dev/null 2>&1 || open_status=$?\n fi\n\n if [[ $open_status -eq 0 ]]; then\n echo \"Application '$bundle_id' relaunched successfully.\"\n else\n echo \"Failed to relaunch application '$bundle_id'.\"\n fi\n}\n\n\n# extract contents\nMOUNT_POINT=$(mktemp -d /tmp/dmg_mount_XXXXXX)\nhdiutil attach -plist -nobrowse -readonly -mountpoint \"$MOUNT_POINT\" \"$INSTALLER_PATH\"\nsudo cp -R \"$MOUNT_POINT\"/* \"$TMPDIR\"\nhdiutil detach \"$MOUNT_POINT\"\n# copy to the applications folder\nquit_and_track_application 'com.parallels.desktop.console'\nif [ -d \"$APPDIR/Parallels Desktop.app\" ]; then\n\tsudo mv \"$APPDIR/Parallels Desktop.app\" \"$TMPDIR/Parallels Desktop.app.bkp\"\nfi\nsudo cp -R \"$TMPDIR/Parallels Desktop.app\" \"$APPDIR\"\nrelaunch_application 'com.parallels.desktop.console'\n",
"9c10ac4b": "#!/bin/bash\n\n# variables\nAPPDIR=\"/Applications/\"\nLOGGED_IN_USER=$(scutil <<< \"show State:/Users/ConsoleUser\" | awk '/Name :/ { print $3 }')\n# functions\n\nsend_signal() {\n local signal=\"$1\"\n local bundle_id=\"$2\"\n local logged_in_user=\"$3\"\n local logged_in_uid pids\n\n if [ -z \"$signal\" ] || [ -z \"$bundle_id\" ] || [ -z \"$logged_in_user\" ]; then\n echo \"Usage: uninstall_signal <signal> <bundle_id> <logged_in_user>\"\n return 1\n fi\n\n logged_in_uid=$(id -u \"$logged_in_user\")\n if [ -z \"$logged_in_uid\" ]; then\n echo \"Could not find UID for user '$logged_in_user'.\"\n return 1\n fi\n\n echo \"Signalling '$signal' to application ID '$bundle_id' for user '$logged_in_user'\"\n\n pids=$(/bin/launchctl asuser \"$logged_in_uid\" sudo -iu \"$logged_in_user\" /bin/launchctl list | awk -v bundle_id=\"$bundle_id\" '\n $3 ~ bundle_id { print $1 }')\n\n if [ -z \"$pids\" ]; then\n echo \"No processes found for bundle ID '$bundle_id'.\"\n return 0\n fi\n\n echo \"Unix PIDs are $pids for processes with bundle identifier $bundle_id\"\n for pid in $pids; do\n if kill -s \"$signal\" \"$pid\" 2>/dev/null; then\n echo \"Successfully signaled PID $pid with signal $signal.\"\n else\n echo \"Failed to kill PID $pid with signal $signal. Check permissions.\"\n fi\n done\n\n sleep 3\n}\n\ntrash() {\n local logged_in_user=\"$1\"\n local target_file=\"$2\"\n local timestamp=\"$(date +%Y-%m-%d-%s)\"\n local rand=\"$(jot -r 1 0 99999)\"\n\n # replace ~ with /Users/$logged_in_user\n if [[ \"$target_file\" == ~* ]]; then\n target_file=\"/Users/$logged_in_user${target_file:1}\"\n fi\n\n local trash=\"/Users/$logged_in_user/.Trash\"\n local file_name=\"$(basename \"${target_file}\")\"\n\n if [[ -e \"$target_file\" ]]; then\n echo \"removing $target_file.\"\n mv -f \"$target_file\" \"$trash/${file_name}_${timestamp}_${rand}\"\n else\n echo \"$target_file doesn't exist.\"\n fi\n}\n\nsend_signal 'TERM' 'com.parallels.desktop.console' \"$LOGGED_IN_USER\"\n(cd /Users/$LOGGED_IN_USER && '/usr/bin/pkill' '-TERM' 'prl_client_app') || true\nsudo rm -rf '/Library/Preferences/Parallels'\nsudo rm -rf '/usr/local/bin/prl_convert'\nsudo rm -rf '/usr/local/bin/prl_disk_tool'\nsudo rm -rf '/usr/local/bin/prl_perf_ctl'\nsudo rm -rf '/usr/local/bin/prlcore2dmp'\nsudo rm -rf '/usr/local/bin/prlctl'\nsudo rm -rf '/usr/local/bin/prlexec'\nsudo rm -rf '/usr/local/bin/prlsrvctl'\nsudo rm -rf \"$APPDIR/Parallels Desktop.app\"\nsudo rmdir '/Users/Shared/Parallels'\nsudo rmdir '~/Library/Caches/Parallels Software'\nsudo rmdir '~/Library/Parallels'\nsudo rmdir '~/Parallels'\ntrash $LOGGED_IN_USER '~/.parallels_settings'\ntrash $LOGGED_IN_USER '~/Applications (Parallels)'\ntrash $LOGGED_IN_USER '~/Library/Application Scripts/*.com.parallels.Desktop'\ntrash $LOGGED_IN_USER '~/Library/Application Scripts/com.parallels.desktop*'\ntrash $LOGGED_IN_USER '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.parallels.desktop.console.sfl*'\ntrash $LOGGED_IN_USER '~/Library/Caches/com.apple.helpd/Generated/com.parallels.desktop.console.help*'\ntrash $LOGGED_IN_USER '~/Library/Caches/com.parallels.desktop.console'\ntrash $LOGGED_IN_USER '~/Library/Caches/Parallels Software/Parallels Desktop'\ntrash $LOGGED_IN_USER '~/Library/Containers/com.parallels.desktop*'\ntrash $LOGGED_IN_USER '~/Library/Group Containers/*.com.parallels.Desktop'\ntrash $LOGGED_IN_USER '~/Library/Logs/parallels.log'\ntrash $LOGGED_IN_USER '~/Library/Parallels/Applications Menus'\ntrash $LOGGED_IN_USER '~/Library/Parallels/Downloads'\ntrash $LOGGED_IN_USER '~/Library/Parallels/Parallels Desktop'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.desktop.console.LSSharedFileList.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.desktop.console.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels Desktop Events.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels Desktop Statistics.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels Desktop.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.PDInfo.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/Parallels'\ntrash $LOGGED_IN_USER '~/Library/Saved Application State/com.parallels.desktop.console.savedState'\n"
"038b4616": "#!/bin/bash\n\n# variables\nAPPDIR=\"/Applications/\"\nLOGGED_IN_USER=$(scutil <<< \"show State:/Users/ConsoleUser\" | awk '/Name :/ { print $3 }')\n# functions\n\nsend_signal() {\n local signal=\"$1\"\n local bundle_id=\"$2\"\n local logged_in_user=\"$3\"\n local logged_in_uid pids\n\n if [ -z \"$signal\" ] || [ -z \"$bundle_id\" ] || [ -z \"$logged_in_user\" ]; then\n echo \"Usage: uninstall_signal <signal> <bundle_id> <logged_in_user>\"\n return 1\n fi\n\n logged_in_uid=$(id -u \"$logged_in_user\")\n if [ -z \"$logged_in_uid\" ]; then\n echo \"Could not find UID for user '$logged_in_user'.\"\n return 1\n fi\n\n echo \"Signalling '$signal' to application ID '$bundle_id' for user '$logged_in_user'\"\n\n pids=$(/bin/launchctl asuser \"$logged_in_uid\" sudo -iu \"$logged_in_user\" /bin/launchctl list | awk -v bundle_id=\"$bundle_id\" '\n $3 ~ bundle_id { print $1 }')\n\n if [ -z \"$pids\" ]; then\n echo \"No processes found for bundle ID '$bundle_id'.\"\n return 0\n fi\n\n echo \"Unix PIDs are $pids for processes with bundle identifier $bundle_id\"\n for pid in $pids; do\n if kill -s \"$signal\" \"$pid\" 2>/dev/null; then\n echo \"Successfully signaled PID $pid with signal $signal.\"\n else\n echo \"Failed to kill PID $pid with signal $signal. Check permissions.\"\n fi\n done\n\n sleep 3\n}\n\ntrash() {\n local logged_in_user=\"$1\"\n local target_file=\"$2\"\n local timestamp=\"$(date +%Y-%m-%d-%s)\"\n local rand=\"$(jot -r 1 0 99999)\"\n\n # replace ~ with /Users/$logged_in_user\n if [[ \"$target_file\" == ~* ]]; then\n target_file=\"/Users/$logged_in_user${target_file:1}\"\n fi\n\n local trash=\"/Users/$logged_in_user/.Trash\"\n local file_name=\"$(basename \"${target_file}\")\"\n\n if [[ -e \"$target_file\" ]]; then\n echo \"removing $target_file.\"\n mv -f \"$target_file\" \"$trash/${file_name}_${timestamp}_${rand}\"\n else\n echo \"$target_file doesn't exist.\"\n fi\n}\n\nsend_signal 'TERM' 'com.parallels.desktop.console' \"$LOGGED_IN_USER\"\n(cd /Users/$LOGGED_IN_USER && '/usr/bin/pkill' '-TERM' 'prl_client_app') || true\nsudo rm -rf '/Library/Preferences/Parallels'\nsudo rm -rf '/usr/local/bin/prl_convert'\nsudo rm -rf '/usr/local/bin/prl_disk_tool'\nsudo rm -rf '/usr/local/bin/prl_perf_ctl'\nsudo rm -rf '/usr/local/bin/prlcopy'\nsudo rm -rf '/usr/local/bin/prlcore2dmp'\nsudo rm -rf '/usr/local/bin/prlctl'\nsudo rm -rf '/usr/local/bin/prlexec'\nsudo rm -rf '/usr/local/bin/prlsrvctl'\nsudo rm -rf \"$APPDIR/Parallels Desktop.app\"\nsudo rmdir '/Users/Shared/Parallels'\nsudo rmdir '~/Library/Caches/Parallels Software'\nsudo rmdir '~/Library/Parallels'\nsudo rmdir '~/Parallels'\ntrash $LOGGED_IN_USER '~/.parallels_settings'\ntrash $LOGGED_IN_USER '~/Applications (Parallels)'\ntrash $LOGGED_IN_USER '~/Library/Application Scripts/*.com.parallels.Desktop'\ntrash $LOGGED_IN_USER '~/Library/Application Scripts/com.parallels.desktop*'\ntrash $LOGGED_IN_USER '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.parallels.desktop.console.sfl*'\ntrash $LOGGED_IN_USER '~/Library/Caches/com.apple.helpd/Generated/com.parallels.desktop.console.help*'\ntrash $LOGGED_IN_USER '~/Library/Caches/com.parallels.desktop.console'\ntrash $LOGGED_IN_USER '~/Library/Caches/Parallels Software/Parallels Desktop'\ntrash $LOGGED_IN_USER '~/Library/Containers/com.parallels.desktop*'\ntrash $LOGGED_IN_USER '~/Library/Group Containers/*.com.parallels.Desktop'\ntrash $LOGGED_IN_USER '~/Library/Logs/parallels.log'\ntrash $LOGGED_IN_USER '~/Library/Parallels/Applications Menus'\ntrash $LOGGED_IN_USER '~/Library/Parallels/Downloads'\ntrash $LOGGED_IN_USER '~/Library/Parallels/Parallels Desktop'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.desktop.console.LSSharedFileList.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.desktop.console.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels Desktop Events.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels Desktop Statistics.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels Desktop.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.Parallels.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/com.parallels.PDInfo.plist'\ntrash $LOGGED_IN_USER '~/Library/Preferences/Parallels'\ntrash $LOGGED_IN_USER '~/Library/Saved Application State/com.parallels.desktop.console.savedState'\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Several new cleanup targets never resolve to real user paths.

The new uninstall script mixes literal ~ paths (sudo rmdir '~/Library/Parallels') with a trash() helper that always quotes $target_file, so the wildcard entries like ~/Library/Application Scripts/*.com.parallels.Desktop are never expanded either. As written, a big chunk of the newly added user-data cleanup is skipped.

Possible fix
user_home="/Users/$LOGGED_IN_USER"

sudo rmdir "$user_home/Library/Caches/Parallels Software" 2>/dev/null || true
sudo rmdir "$user_home/Library/Parallels" 2>/dev/null || true
sudo rmdir "$user_home/Parallels" 2>/dev/null || true

trash() {
  local logged_in_user="$1"
  local pattern="$2"
  local timestamp="$(date +%Y-%m-%d-%s)"
  local rand="$(jot -r 1 0 99999)"
  local trash_dir="/Users/$logged_in_user/.Trash"

  [[ "$pattern" == ~* ]] && pattern="/Users/$logged_in_user${pattern:1}"

  shopt -s nullglob
  local matches=( $pattern )
  shopt -u nullglob

  for target_file in "${matches[@]}"; do
    local file_name
    file_name="$(basename "$target_file")"
    mv -f "$target_file" "$trash_dir/${file_name}_${timestamp}_${rand}"
  done
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ee/maintained-apps/outputs/parallels/darwin.json` around lines 11 - 19, The
uninstall script uses literal '~' and quoted patterns so globs never expand (see
trash(), LOGGED_IN_USER and the sudo rmdir calls); change all literal-tilde
targets to an expanded user_home="/Users/$LOGGED_IN_USER" and use that variable
in rmdir/remove calls, and rewrite trash() to accept a pattern, expand leading
'~' to /Users/$LOGGED_IN_USER, enable shell globbing (nullglob) to collect
matches into an array, then iterate over matches and move each resolved file
into the user's .Trash with the timestamp/rand suffix (do not quote the pattern
before expansion); update calls like trash $LOGGED_IN_USER
'~/Library/Containers/com.parallels.desktop*' to rely on the new trash()
behavior so wildcards are actually processed.

@github-actions

Copy link
Copy Markdown
Contributor

Closing in favor of #46418.

@github-actions github-actions Bot closed this May 29, 2026
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

Successfully merging this pull request may close these issues.

2 participants