cannot auto delete on safari exit
-
-
@SweetP said in cannot auto delete on safari exit:
@tuancc said in cannot auto delete on safari exit:
"add a website as a favourite." on safari or cookieapp?
inside Cookie
i tried on macos12 and macos13, and still not work.
But I can manually click the [remove] button to remove cookies.
It seems that cookieapp cannot successfully monitor safari quiting.
-
@SweetP said in cannot auto delete on safari exit:
@tuancc said in cannot auto delete on safari exit:
Can I ask, how CookieApp monitors the safari browser quiting.
using the macOS native API:
NSWorkspaceDidTerminateApplicationNotification
is there any log when cookieapp received notification "NSWorkspaceDidTerminateApplicationNotification" ?
-
@SweetP said in cannot auto delete on safari exit:
do you have any other browsers installed in your Mac
if so, do they work on Quit?i test for google chrome, it works.
when i quit chrome, it auto delete all cookies, and show a notification:
-
It seems to be a problem with the system language, if I set the system language to English, cookieapp can monitor safari quiting.
But as long as the system language is changed to another language, the application name of safari will change, it will not work.
-
@tuancc there is a slight difference in my checks for when a browser has been quit
Ive updated the code to be more reliable,
can you let me know if this version works better for you:
https://send.tresorit.com/a#jY-LIMpnXwe94BK-mHu7XQ -
@tuancc said in cannot auto delete on safari exit:
It seems to be a problem with the system language, if I set the system language to English, cookieapp can monitor safari quiting.
good spotting!
thats also exactly what I assumed,
the version I just uploaded fixes that -
@SweetP said in cannot auto delete on safari exit:
@tuancc there is a slight difference in my checks for when a browser has been quit
Ive updated the code to be more reliable,
can you let me know if this version works better for you:
https://send.tresorit.com/a#jY-LIMpnXwe94BK-mHu7XQgreat! it works for non-english system!
-
and there is a small problem, that is, when I quit safari, cookieapp immediately starts to delete cookies, but the notification will be delayed, and it takes about 5 seconds for me to receive the notification from cookieapp.
I'm not sure if this is normal behavior.
-
@tuancc said in cannot auto delete on safari exit:
and there is a small problem, that is, when I quit safari, cookieapp immediately starts to delete cookies, but the notification will be delayed, and it takes about 5 seconds for me to receive the notification from cookieapp.
I'm not sure if this is normal behavior.
Cookie actually does have a small delay before clearing data on Browser quit - to avoid any corruption.
It also clears data two times, to make sure everything is properly cleared
-
There is only one website's cookies in safari, when I quit safari, I see that the list of cookies in cookieapp is deleted within one second, but the notification is not shown until about five seconds later. So the notification is not a small delay.
I raise this question just to worry about one thing, I often restart the safari browser, maybe restart it 2 seconds after quitting, I don't know what will happen if the cookieapp is still in the process of deleting data.
Or should I wait for 5 seconds to receive the cookieapp notification before launching the safari browser. -
@SweetP said in cannot auto delete on safari exit:
The notification is posted after all data has been removed, so that would be the optimal time to restart.
that's a good idea~
But I'm still confused, when I click [Delete Unwanted Data] manually, I will get a notification within 2 seconds, but when I quit safari, the cookieapp starts working immediately, but I have to wait at least 5 seconds Notifications can only be received after that. I don't understand what the difference is here.