aprilis / messenger

Unofficial Facebook Messenger app for elementary OS
GNU General Public License v3.0
91 stars 7 forks source link

Remove chats on shutdown/logout #36

Open artistro08 opened 5 years ago

artistro08 commented 5 years ago

As the system shuts down and boots back up, there's leftover chats that end up in the dock. is there any way to get rid of these on boot?

aprilis commented 5 years ago

I can add it as an option to close all chats when the system shuts down

artistro08 commented 5 years ago

that would be great!

aprilis commented 5 years ago

Well I've implemented closing all conversations as soon as the app gets an information about the system preparing to shut down, but the problem is that shortly after that the system kills all programs and sometimes the app doesn't have enough time to perform all operations. You can always use quick actions by right-clicking Messenger icon or any chat icon and selecting "Close all conversations".

artistro08 commented 5 years ago

Would it be beneficial to utilize the /etc/rc6.d shutdown? For example, on install, it creates a script that runs the program with a --quit flag on your program if open.