actuallymentor / battery

CLI/GUI for managing the battery charging status for Apple silicon (M1, M32, M3) Macs
MIT License
3.89k stars 166 forks source link

How do I completely uninstall the battery app? #277

Open dougieinspace opened 6 months ago

dougieinspace commented 6 months ago

What is the issue? (required) Hi Actuallymentor, I'm trying to completely uninstall the battery app (I installyed using the .dmg) for various reasons and want to be sure that I have. Would you kindly let me know which files and folders I should delete from /Library? Thank you.

Kind regards, User

What exactly did you do to produce the issue? (required) Steps to reproduce the behavior:

  1. Disable the 80% charging cap option and the force-discharging option
  2. Click uninstall from the dropdown menu of the battery app on the menu bar
  3. Restart my Mac
  4. Be presented with an error code from the battery app about requiring an internet connection to perform certain tasks
  5. Force quit the battery app using Activity Monitor
  6. Delete the battery app from the Application folder
  7. What else am I supposed to delete?
lucashoeft commented 5 months ago

When I deleted battery via the CLI, following folders/files were listed in the terminal:

/usr/local/bin/smc
/usr/local/bin/battery
/private/etc/sudoers.d/battery
/Users/<User>/.battery/maintain.percentage
/Users/<User>/.battery/battery.log
/Users/<User>/.battery/battery.pid
/Users/<User>/.battery

Hint: <User> is your username

Royalzzzzzz commented 5 months ago

Probably some files were not deleted I would suggest you to use appcleaner (https://freemacsoft.net/appcleaner/) most convenient way to keep your Mac clean and its free so no harm in giving it a try

IhorLeshko commented 1 month ago

My steps were:

  1. Click uninstall from the dropdown menu of the battery app on the menu bar
  2. Restart Mac
  3. Delete using homebrew (was installed by)
  4. Restart Mac

Works for me (MacBook m1 8/256). After 2nd step, app still was in tray, so I went to step 3.