48 |
load_setup |
load_setup |
49 |
@bus["/log/info"] << "--- #{@properties['config/product_name']} Started on #{Time.now.to_s}" |
@bus["/log/info"] << "--- #{@properties['config/product_name']} Started on #{Time.now.to_s}" |
50 |
|
|
51 |
# --- BEGIN HACK --- |
# --- BEGIN HACK (part 1) --- |
52 |
# the following code is a temporary workaround for a problem using FXRuby in |
# the following code is a temporary workaround for a problem using FXRuby in |
53 |
# an mswin build of Ruby. This should be removed once that problme has been fixed. |
# an mswin build of Ruby. This should be removed once that problem has been fixed. |
54 |
|
|
55 |
# default to a do-nothing message pump |
# default to a do-nothing message pump |
56 |
@bus["/system/ui/messagepump"].set_proc do sleep(0.5) end |
@bus["/system/ui/messagepump"].set_proc do sleep(0.5) end |
57 |
load_plugins |
# --- END HACK --- |
58 |
|
|
59 |
|
@bus["/system/state/all_plugins_loaded"].data = false; |
60 |
|
load_plugins |
61 |
|
@bus["/system/state/all_plugins_loaded"].data = true; |
62 |
|
|
63 |
|
# --- BEGIN HACK (part 2) --- |
64 |
while true do |
while true do |
65 |
@bus["/system/ui/messagepump"].call() |
@bus["/system/ui/messagepump"].call() |
66 |
sleep(0.1) |
sleep(0.1) |