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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2015-05-25 06:56
Hi,

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

or

(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.