zackelia / bclm

macOS command-line utility to limit max battery charge
MIT License
1.88k stars 92 forks source link

Mac App Store not working after persists BCLM on reboot #4

Closed goodjack closed 4 years ago

goodjack commented 4 years ago

macOS version: 10.14.6 MacBook Pro 13-inch, 2018

zackelia commented 4 years ago

@goodjack, are you able to verify that unpersisting bclm fixes this and then persisting breaks it again?

On its own, all persist is doing is running bclm once and exiting on startup. It is the same as just running it from the terminal. The only thing I could think to check is to make sure that sudo launchctl list com.zackelia.bclm.plist shows an exit status of 0 but even then that doesn't really make sense in affecting the App Store. Let me know what you find!

goodjack commented 4 years ago
{
    "LimitLoadToSessionType" = "System";
    "Label" = "com.zackelia.bclm.plist";
    "TimeOut" = 30;
    "OnDemand" = true;
    "LastExitStatus" = 0;
    "Program" = "/usr/local/bin/bclm";
    "ProgramArguments" = (
        "/usr/local/bin/bclm";
        "write";
        "77";
    );
};
zackelia commented 4 years ago

That output looks right, bclm didn't run into any errors on startup. Are you able to verify that this App Store behavior is consistent with persisting and unpersisting bclm?

goodjack commented 4 years ago

Sorry, I can't reproduce the error, but I've had this issue twice. Once I unpersist, everything in the Mac App Store will go back to normal.

The abnormal condition here means that I cannot update or download the software.

zackelia commented 4 years ago

This sounds like it might just be a coincidence, please do let me know if you can get this to be repeatable. The persist command is just running bclm once on startup. Because of this, I would think that any time you ran bclm in the terminal, your App Store wouldn't work which I don't think is the case. Going to close for now.

goodjack commented 4 years ago

Thank you for your time