Sunday, December 20, 2020

How to uninstall an app that doesn't show up in Application folder but exists in Launchpad

 Hi Ya!!


Today I encountered a minor technical challenge where there was an app called "GoToMeeting v10.14.0".

I removed it in the Application folder, but somehow it still showed up in my Launchpad.

It is weird, and it turns out in this case, we need to update an Sqlite3 db in our system!!

Steps:

  1. We need to find where our launchpad database is:

    ❯ find /private/var/folders -name com.apple.dock.launchpad -a -user $USER  2>/dev/null

    /private/var/folders/pq/dhk1_sjn5pdf3q2zr7l0vwy80000gn/0/com.apple.dock.launchpad
    ❯ sqlite3 /private/var/folders/pq/dhk1_sjn5pdf3q2zr7l0vwy80000gn/0/com.apple.dock.launchpad/db/db
  2. Once we have the path (note the 'dhk1_sjn5pdf3q2zr7l0vwy80000gn' is random, yours could be different). Let's call '/private/var/folders/pq/dhk1_sjn5pdf3q2zr7l0vwy80000gn/0/com.apple.dock.launchpad/db/db' as $LAUNCHPAD_DB
  3. Run `sqlite3 $LAUNCHPAD_DB/db/db`
  4. You need to have the complete name of your app, if you don't, try the following command
    sqlite> select * from apps;
  5. For my case, the complete name of the app is 'GoToMeeting v10.14.0'
  6. Here are the key steps!!
    sqlite> delete from apps where title='GoToMeeting v10.14.0';
    sqlite> .exit
    killall Dock
  7. Here you go, the app is gone!