w0lfschild / mySIMBL

:package: Plugin manager for macOS
https://www.macenhance.com/macforge
MIT License
978 stars 61 forks source link

Uninstall Issues #64

Open Canubiz opened 6 years ago

Canubiz commented 6 years ago

When I press Uninstall SIMBL, then logout and login again, start mySIMBL again everything still looks like before. bildschirmfoto 2017-10-26 um 23 24 53 mesz

Maybe I didn't understand the concept of the uninstall procedure here, but to me it seems this button not working. MacOS Sierra 10.12.6. mySIMBL 0.5.3 (29).

Besides, what are the steps to manually remove/uninstall mySIMBL? Is there a list of all files to be removed?

w0lfschild commented 6 years ago

This is what's supposed to run when you click that:


#!/bin/sh

function nukeFiles() {
    if [[ -e "$1" ]]; then
        if [[ -f "$1" ]]; then
            rm -v "$1"
        else
            rm -vr "$1"
        fi
    fi
}

function createFolder() {
    if [[ ! -e "$1" ]]; then
        mkdir -pv "$1"
    fi
    chmod 777 "$1"
}

log_dir="$HOME"/Library/"Application Support"/mySIMBL/logs
createFolder "$log_dir"
exec &>"$log_dir"/removeSIMBL.log

cleanupFiles=(
"/Library/Application Support/SIMBL"
"/Library/LaunchAgents/net.culater.SIMBL.Agent.plist"
"/Library/ScriptingAdditions/SIMBL.osax"
"/Library/ScriptingAdditions/EasySIMBL.osax"
"/System/Library/ScriptingAdditions/SIMBL.osax"
"/System/Library/LaunchAgents/net.culater.SIMBL.Agent.plist"
"$HOME/Library/ScriptingAdditions/SIMBL.osax"
"$HOME/Library/ScriptingAdditions/EasySIMBL.osax"
)

launchctl unload /Library/LaunchAgents/net.culater.SIMBL.Agent.plist
killall SIMBLAgent

echo "Removing files"

for i in "${cleanupFiles[@]}"; do
    echo Removing: "$i"
    nukeFiles "$i"
done

echo "Done"
LogicalTerror commented 5 years ago

Does deleting the application and doing a system reinstall(through holding cmd+r at startup) work to completely remove it? Sorry I'm not knowledgeable, just wanted the minimal HUD hehe

w0lfschild commented 5 years ago

@LogicalTerror I think that would work yes.

LogicalTerror commented 5 years ago

Thanks ^^

kouichi-c-nakamura commented 5 years ago

For #113, I created a text file uninstallSIMBL.sh and pasted the code above.

I ran the shell script by sh xxxxxx/uninstallSIMBL.sh in Terminal.

The script soon hung up.

Looking at /Users/xxxxxxxx/Library/Application\ Support/mySIMBL/logs/removeSIMBL.log, it looked like it was asking a question, so I typed y in Terminal and repated this many times.

Essentially, the script failed because of permission. Can I get any suggestion about how to get it to work?

No matching processes belonging to you were found
Removing files
Removing: /Library/Application Support/SIMBL
override rw-r--r--  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/_CodeSignature/CodeResources? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/_CodeSignature/CodeResources: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/_CodeSignature? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/_CodeSignature: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/MacOS/SIMBLAgent? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/MacOS/SIMBLAgent: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/MacOS? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/MacOS: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/Resources/net.culater.SIMBL.Agent.plist? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/Resources/net.culater.SIMBL.Agent.plist: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/Resources? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/Resources: Permission denied
override rw-r--r--  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/Info.plist? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/Info.plist: Permission denied
override rw-r--r--  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/PkgInfo? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents/PkgInfo: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app/Contents? rm: /Library/Application Support/SIMBL/SIMBLAgent.app/Contents: Permission denied
override rwxr-xr-x  root/admin for /Library/Application Support/SIMBL/SIMBLAgent.app? rm: /Library/Application Support/SIMBL/SIMBLAgent.app: Directory not empty
rm: /Library/Application Support/SIMBL: Permission denied
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/icon.icns
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/MacOS/Afloat
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/MacOS
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/MacOS/Afloat Scripting
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/MacOS
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/Resources/English.lproj/MainMenu.nib
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/Resources/English.lproj/InfoPlist.strings
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/Resources/English.lproj
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/Resources/AfloatScripting.sdef
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/Resources
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/Info.plist
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents/PkgInfo
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app/Contents
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Afloat Scripting.app
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/en.lproj/AfloatBadge.nib
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/en.lproj/AfloatPanel.nib
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/en.lproj/InfoPlist.strings
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/en.lproj/Afloat.nib
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/en.lproj
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/AfloatButtonPressed.png
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/AfloatFloatingBadge.png
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/AfloatSinkingBadge.png
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/AfloatMenuBadge.png
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/AfloatButton.png
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/Afloat2.icns
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources/AfloatHUDBackdrop.png
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Resources
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents/Info.plist
/Library/Application Support/SIMBL/Plugins/Afloat.bundle/Contents
/Library/Application Support/SIMBL/Plugins/Afloat.bundle
/Library/Application Support/SIMBL/Plugins
/Library/Application Support/SIMBL/Plugins (Disabled)
Removing: /Library/LaunchAgents/net.culater.SIMBL.Agent.plist
override rwxr-xr-x  root/wheel for /Library/LaunchAgents/net.culater.SIMBL.Agent.plist? rm: /Library/LaunchAgents/net.culater.SIMBL.Agent.plist: Permission denied
Removing: /Library/ScriptingAdditions/SIMBL.osax
Removing: /Library/ScriptingAdditions/EasySIMBL.osax
Removing: /System/Library/ScriptingAdditions/SIMBL.osax
Removing: /System/Library/LaunchAgents/net.culater.SIMBL.Agent.plist
Removing: /Users/xxxxxxxx/Library/ScriptingAdditions/SIMBL.osax
Removing: /Users/xxxxxxxx/Library/ScriptingAdditions/EasySIMBL.osax
Done
w0lfschild commented 4 years ago

@kouichi-c-nakamura

Are you running it as root?

sudo path_to_script

You also need System Integrity Protection off to remove stuff in /System

Tech-Wizardd commented 6 months ago

Hey! For anyone new experiencing this issue: For whatever reason, "simblagent" yields nothing in spotlight... Except for on one of my old Macs, it pulled up a file in Library. Here's the steps to remove the annoying popup permanently: (WARNING: THIS MAY MAKE YOUR INSTALLATION OF SIMBL UNSTABLE OR COMPLETELY BROKEN!) Try doing a spotlight search for "SimblAgent". If nothing comes up, simply go to the path I put below to manually delete it.

Go to Macintosh HD > Library > Application Support > SIMBL and delete "SimblAGENT". Tada! No need to disable SIP, or do really anything else. Tried it out on my new Mac (where simblagent wouldn't appear in spotlight search) and it worked! Enjoy! Hope I could help some people out!

Edit: "Help! SIMBLAgent is running!" Delete the parent SIMBL folder, and there you go! Will get rid of all of your plugins. AGAIN, THIS WILL LIKELY BREAK MYSIMBL. ONLY USE FOR UNINSTALLATIONS! If this worked for you, I'm glad I could help!