cannot auto delete on safari exit
-
i had tried this way :
https://support.sweetpproductions.com/topic/798/after-update-to-macos-12-cookie-is-not-firing-on-browser-quitbut still not work.
-
can you try this:
add a website as a favourite.
then uncheck the website as a favourite.then try the removal again.
does that work -
@SweetP said in cannot auto delete on safari exit:
can you try this:
add a website as a favourite.
then uncheck the website as a favourite.then try the removal again.
does that work"add a website as a favourite." on safari or cookieapp?
@tuancc said in cannot auto delete on safari exit:
"add a website as a favourite." on safari or cookieapp?
inside Cookie
-
i had tried reboot the system. but still not work.
and i tried on macOS13, still not work.Can I ask, how CookieApp monitors the safari browser quiting.
@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
-
@tuancc said in cannot auto delete on safari exit:
"add a website as a favourite." on safari or cookieapp?
inside Cookie
@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.
-
@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
@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" ?
-
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 -
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 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 -
@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.
-
@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!
@tuancc said in cannot auto delete on safari exit:
great! it works for non-english system!
Super nice!
thanks for your help
Ill clean up the code and release this officially later today. -
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