Forum: Ruby-Gnome 2 Is there a way to perform an on-quit action?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Robert H. (Guest)
on 2015-05-25 08:56

One rubygnome program creates a gmon.out file in the current working
directory. I do not know why but I don't want this file.

Is there either:

(a) a way to prevent the creation of a gmon.out file


(b) an on-quit event handler or similar, so that I could
use File.delete('gmon.out') to get rid of said file?

I don't want to use at_exit() because that feels unclean
when I use that GUI program from other GUI programs (like
in a tab, and they'd all use different at-exit handlers)
This topic is locked and can not be replied to.