Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void signal_handler(int sig)
- {
- // Improve this so it dumps a log...
- if (sig == SIGSEGV) {
- MNotification notification("sociality-notification", "Sociality has encountered an error!", "Please file a bug report to mohammad7410@gmail.com");
- notification.setImage("/usr/share/pixmaps/sociality-mtf.png");
- MRemoteAction action(DBUS_SERVICE, DBUS_PATH, DBUS_INTERFACE, "fileBugReport");
- notification.setAction(action);
- notification.publish();
- exit(EXIT_FAILURE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement