You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
579 B

#!/usr/bin/env ruby
require 'gtk2'
$cpt=0
window = Gtk::Window.new
window.modal=true
window.set_default_size(640, 140)
#window.signal_connect("delete_event") {
# puts "delete event occurred"
# #true
# false
#}
window.signal_connect("destroy") {
puts "destroy event occurred"
Gtk.main_quit
}
window.add(Gtk::Label.new("Load network description... Be patient !"))
window.show_all
Gtk.timeout_add(200) {
$cpt=$cpt+1
if $cpt > 2
r=system("ps auwx | grep -v grep | grep -q 'ruby.*vdn-gui'")
if r==true
Gtk.main_quit
end
end
true
}
Gtk.main