Created
June 11, 2025 13:41
-
-
Save jmhublar/cbb25a9e7fe100f54b69a55b348e7de9 to your computer and use it in GitHub Desktop.
Deal with annoying crash on boot of chatgpt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to troubleshoot ChatGPT macOS app crashes | |
echo "Starting ChatGPT macOS app crash troubleshooting..." | |
# Step 1: Clear Application Support files | |
APP_SUPPORT_PATH="$HOME/Library/Application Support/com.openai.chat" | |
if [ -d "$APP_SUPPORT_PATH" ]; then | |
echo "Removing Application Support files..." | |
rm -rf "$APP_SUPPORT_PATH" | |
else | |
echo "No Application Support files found." | |
fi | |
# Step 2: Remove preference files | |
PREF_FILES=( | |
"$HOME/Library/Preferences/com.openai.chat.plist" | |
"$HOME/Library/Preferences/com.segment.storage.oai.plist" | |
"$HOME/Library/Preferences/com.openai.chat.helper.plist" | |
) | |
echo "Removing preference files..." | |
for file in "${PREF_FILES[@]}"; do | |
if [ -f "$file" ]; then | |
rm "$file" | |
echo "Removed $file" | |
else | |
echo "File $file not found." | |
fi | |
done | |
# Step 3: Reset language settings | |
echo "Resetting language settings..." | |
defaults delete com.openai.chat AppleLanguages 2>/dev/null | |
# Step 4: Prompt user to archive chats | |
echo "Please open ChatGPT in your browser and archive all chats:" | |
echo "1. Go to https://chat.openai.com" | |
echo "2. Navigate to Settings > General" | |
echo "3. Click on 'Archive all chats'" | |
read -p "Press Enter after completing the above steps..." | |
# Step 5: Guide to reinstall the app | |
echo "Please reinstall the ChatGPT app:" | |
echo "1. Download the latest version from https://openai.com/chatgpt/desktop" | |
echo "2. Install the app as per the instructions." | |
echo "Troubleshooting steps completed. If the issue persists, consider contacting OpenAI support at https://help.openai.com." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment