Advertisement
Guest User

Untitled

a guest
May 9th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void signal_handler(int sig)
  2. {
  3. // Improve this so it dumps a log...
  4. if (sig == SIGSEGV) {
  5. MNotification notification("sociality-notification", "Sociality has encountered an error!", "Please file a bug report to mohammad7410@gmail.com");
  6. notification.setImage("/usr/share/pixmaps/sociality-mtf.png");
  7.  
  8. MRemoteAction action(DBUS_SERVICE, DBUS_PATH, DBUS_INTERFACE, "fileBugReport");
  9. notification.setAction(action);
  10. notification.publish();
  11.  
  12. exit(EXIT_FAILURE);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement