KeepingYouAwake icon indicating copy to clipboard operation
KeepingYouAwake copied to clipboard

Preferences not saving

Open Cranial opened this issue 6 years ago • 9 comments

KeepingYouAwake version 1.50 macOS 10.14.3

Every time I restart the app it defaults to "Start at Login: off" , "Default Activation Duration: Indefinitely" and "Enable Experimental notification centre: off"

I've tried removing the app, deleting anything I could find in Library (containers). No fix.

Cranial avatar Feb 19 '19 00:02 Cranial

I have the same issue. KeepingYouAwake Version 1.5.0 (1050004) macOS 10.14.3 (18D109)

niklasbabel avatar Mar 04 '19 12:03 niklasbabel

Any news on this issue? I as yet have not figured out a way to resolve it.

Cranial avatar May 15 '19 07:05 Cranial

That's very strange and I haven't seen this behavior yet. This could be a weird sandboxing edge case.

I can also just guess here and recommend deleting all preferences in the following locations:

~/Library/Containers/info.marcel-dierkes.KeepingYouAwake
(~/Library/Preferences/info.marcel-dierkes.KeepingYouAwake.plist)
(~/Library/Application Support/KeepingYouAwake)

Also please reboot your Mac before you launch the app again.

And a related follow-up question: Did you attempt to launch the app from a location outside of /Applications while this problem occured?

newmarcel avatar Aug 09 '19 20:08 newmarcel

I managed to track down the cause and solution to this issue. It appeared I had KeepingYouAwake installed as a normal app install on one machine, and via Homebrew on another machine. Due to some old experimenting with preference syncing, there was a collision of preference files and locations.

I haven't got the exact locations or how I actually fixed it, due to travelling and computer changes, but removing both the app, and any homebrew references and restarting/re-installing should fix the issue.

Cranial avatar Sep 12 '19 02:09 Cranial

I got a new MacBook last week and now I have the same problem. I'm on MacOS 10.15.7

Completely uninstalled/reinstalled the app via homebrow does not change this. The preferences are not saved.

~/Library/Preferences/info.marcel-dierkes.KeepingYouAwake.plist does not exist

zisoft avatar Oct 28 '20 17:10 zisoft

Did you restore anything to the new Mac from an old one? Or use something like mackup to sync/restore preferences to the new Mac?

I'm pretty sure it was mackup causing the issue for me.

Cranial avatar Oct 28 '20 21:10 Cranial

Yes, I transferred my settings via Mackup.

I have made some further tests:

  1. Uninstall: brew uninstall keepingyouawake
  2. deleted all files/directories:
~/Library/Containers/info.marcel-dierkes.KeepingYouAwake
~/Library/Preferences/info.marcel-dierkes.KeepingYouAwake.plist
~/Library/Application Support/KeepingYouAwake
  1. Re-install: brew install keepingyouawake
  2. Start KeepingYouAwake
  3. Set my preferences: Start on login, default time to 1h

Now I check the files/directories with the following result:

~/Library/Containers/info.marcel-dierkes.KeepingYouAwake EXISTS ~/Library/Containers/info.marcel-dierkes.KeepingYouAwake.Launcher EXISTS ~/Library/Application Support/KeepingYouAwake DOES NOT EXIST ~/Library/Preferences/info.marcel-dierkes.KeepingYouAwake.plistDOES NOT EXIST

zisoft avatar Oct 29 '20 08:10 zisoft

Another reboot of the Mac solved the problem, although:

~/Library/Containers/info.marcel-dierkes.KeepingYouAwake EXISTS ~/Library/Containers/info.marcel-dierkes.KeepingYouAwake.Launcher EXISTS ~/Library/Application Support/KeepingYouAwake DOES NOT EXIST ~/Library/Preferences/info.marcel-dierkes.KeepingYouAwake.plistDOES NOT EXIST

zisoft avatar Oct 29 '20 08:10 zisoft

Only the ~/Library/Containers/ subfolders should exist. That's alright. The last two paths are from the time before the app was sandboxed and these files can be discarded.

newmarcel avatar Oct 29 '20 08:10 newmarcel