Hi,
I have application which works in system tray. When application is terminated I must save some stuff to the local directory (configuration, buffers, cache etc.). This works fine when user terminate application, but if he shut down system when application is running, then my program doesn't save anything (tested on windows and linux). I notify that some applications (like virtualbox or skype) can hold on system closing (I get message "Application VirtualBox is runnig. Do you really want to shut down?". How can I do this same and quick save data?
Regards