52 |
load_properties |
load_properties |
53 |
load_setup |
load_setup |
54 |
@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}" |
|
|
|
|
if (Config::CONFIG['os_host'] == 'mswin32') |
|
|
# --- BEGIN HACK (part 1) --- |
|
|
# the following code is a temporary workaround for a problem using FXRuby in |
|
|
# an mswin build of Ruby. This should be removed once that problem has been fixed. |
|
|
|
|
|
# default to a do-nothing message pump |
|
|
@bus["/system/ui/messagepump"].set_proc do sleep(0.5) end |
|
|
# --- END HACK --- |
|
|
end |
|
|
|
|
55 |
@bus["/system/state/all_plugins_loaded"].data = false; |
@bus["/system/state/all_plugins_loaded"].data = false; |
56 |
load_plugins |
load_plugins |
57 |
@bus["/system/state/all_plugins_loaded"].data = true; |
@bus["/system/state/all_plugins_loaded"].data = true; |
58 |
|
tui = Thread.new { |
59 |
if (Config::CONFIG['os_host'] == 'mswin32') |
@bus["/system/ui/messagepump"].call() |
60 |
# --- BEGIN HACK (part 2) --- |
} |
61 |
while true do |
tui.join |
|
@bus["/system/ui/messagepump"].call() |
|
|
sleep(0.1) |
|
|
end |
|
|
# --- END HACK --- |
|
|
else |
|
|
tui = Thread.new { |
|
|
@bus["/system/ui/messagepump"].call() |
|
|
} |
|
|
tui.join |
|
|
end |
|
|
|
|
62 |
end |
end |
63 |
|
|
64 |
## |
## |