Closed jacobrosenthal closed 6 years ago
I think I have it, but want to remove all the entries and make sure I dont get duplicates again...
launchctl remove wont do it disable csrutil and try? nope
was able to delete vi /var/db/com.apple.xpc.launchd/loginitems.501.plist which only held the entry I didnt want
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Jacobs-MacBook-Air:memoryio-macosx-swift jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous 0xd0a53 M D com.augmentous.LaunchAtLoginHelperApp "com.augmentous.memoryio-LaunchAtLoginHelper" => true "com.augmentous.LaunchAtLoginHelperApp" => false
not there yet maybe kill daemon or reboot? seems impossible, so reboot nope didnt do it, something put it back
well maybe it is gone? Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous "com.augmentous.memoryio-LaunchAtLoginHelper" => true "com.augmentous.LaunchAtLoginHelperApp" => true
no numbered entry, just the blacklists.. still id like to delete them
aha! sudo vi /private/var/db/com.apple.xpc.launchd/disabled.501.plist FUCK
HA! https://forums.developer.apple.com/thread/8489
ok now run memory io 1.x Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous 0xcbc8b M D com.augmentous.LaunchAtLoginHelperApp "com.augmentous.LaunchAtLoginHelperApp" => false Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$
now launch memoryio 2.x Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous 0xcbc8b M D com.augmentous.LaunchAtLoginHelperApp "com.augmentous.LaunchAtLoginHelperApp" => false Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$
I think thats it
tried deleting all the plists in Application Support but they didnt come back, thats the pre sandbox stuff sandbox stuff seems to be in ~/Library/Containers if I delete that my app crashes, known bug, you have to reboot or killall -SIGTERM cfprefsd https://source.ind.ie/better/app/commit/6854c4dbf2d4ff67fd340d49ffed4b7e2930feb1 https://stackoverflow.com/questions/19292134/my-sandboxed-app-was-running-fine-in-10-8-but-in-10-9-it-seems-that-user-default
still starting up... how to fucking clear that??
why doesnt launchatlogin show up in "Login Items" this api doesnt .. what api are other people using to show up in there??
old way was LSSharedFileList?? cant use that anymore
how does he check for isEnabled in launchatlogin, SMCopyAllJobDictionaries thats the current, but deprecated way, but people are still using it
but other people are in login items, what the fuck are they using?
found more files sudo find / -name "com.augmentous.*"
/private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/T/com.augmentous.memoryio /private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/T/com.augmentous.memoryio-LaunchAtLoginHelper /private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/T/com.augmentous.LaunchAtLoginHelperApp /private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/C/com.augmentous.memoryio /private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/C/com.augmentous.memoryio/com.augmentous.memoryio /private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/C/com.augmentous.memoryio-LaunchAtLoginHelper /private/var/folders/hv/syzcx3w10850txk2z6tbnb9m0000gn/C/com.augmentous.LaunchAtLoginHelperApp /Users/jacobrosenthal/Library/Application Scripts/com.augmentous.memoryio /Users/jacobrosenthal/Library/Application Scripts/com.augmentous.memoryio-LaunchAtLoginHelper /Users/jacobrosenthal/Library/Application Scripts/com.augmentous.LaunchAtLoginHelperApp /Users/jacobrosenthal/Library/Containers/com.augmentous.memoryio /Users/jacobrosenthal/Library/Containers/com.augmentous.memoryio/Data/Library/Preferences/com.augmentous.memoryio.plist /Users/jacobrosenthal/Library/Containers/com.augmentous.memoryio/Data/Library/Application Scripts/com.augmentous.memoryio /Users/jacobrosenthal/Library/Containers/com.augmentous.memoryio-LaunchAtLoginHelper /Users/jacobrosenthal/Library/Containers/com.augmentous.memoryio-LaunchAtLoginHelper/Data/Library/Application Scripts/com.augmentous.memoryio-LaunchAtLoginHelper /Users/jacobrosenthal/Library/Containers/com.augmentous.LaunchAtLoginHelperApp /Users/jacobrosenthal/Library/Containers/com.augmentous.LaunchAtLoginHelperApp/Data/Library/Application Scripts/com.augmentous.LaunchAtLoginHelperApp
ok found it, its launchctl
Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous 0xf0177 M D com.augmentous.LaunchAtLoginHelperApp "com.augmentous.memoryio-LaunchAtLoginHelper" => true "com.augmentous.LaunchAtLoginHelperApp" => true
lldb) po job { EnableTransactions = 1; Label = "com.augmentous.LaunchAtLoginHelperApp"; LastExitStatus = 19968; LimitLoadToSessionType = Aqua; OnDemand = 1; Program = "com.augmentous.LaunchAtLoginHelperApp"; TimeOut = 30; }
Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl enable "user/$(id -u)"/com.augmentous.LaunchAtLoginHelperApp Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous 0xf0177 M D com.augmentous.LaunchAtLoginHelperApp "com.augmentous.memoryio-LaunchAtLoginHelper" => true "com.augmentous.LaunchAtLoginHelperApp" => false Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$
(lldb) po job { EnableTransactions = 1; Label = "com.augmentous.LaunchAtLoginHelperApp"; LastExitStatus = 19968; LimitLoadToSessionType = Aqua; OnDemand = 1; Program = "com.augmentous.LaunchAtLoginHelperApp"; TimeOut = 30; }
(lldb)
so outside had no effect on inside
now inside, turn button off, it doesnt trigger, so inside effects inside
inside thinks its on currnetly
Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous 0x8dd3b M D com.augmentous.LaunchAtLoginHelperApp "com.augmentous.memoryio-LaunchAtLoginHelper" => true "com.augmentous.LaunchAtLoginHelperApp" => false Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$
and outside agrees
turn button off
Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$ launchctl print "user/$(id -u)" | grep augmentous "com.augmentous.memoryio-LaunchAtLoginHelper" => true "com.augmentous.LaunchAtLoginHelperApp" => true Jacobs-MacBook-Air:memoryio-macosx jacobrosenthal$
and outside agrees
so I dont know how to get inside to see outside.. it must not trigger something to recheck, even on app restart... probably on reboot or service restart
therefor theres no sense in coding up some listners on on makekey and or makefront and or tabview:didselect to try to look it up live and no sense in not just syncing it to nsuserdefaults on app startup
also no sense in checking ondemand, its always on
so the issue is my name isnt the same as his
old "com.augmentous.LaunchAtLoginHelperApp" => false new "com.augmentous.memoryio-LaunchAtLoginHelper" => true
so Ill need to fork launchatlogin to get that fixed..