2019-12-23 06:32:34 +03:00
|
|
|
# Adds a minimal set of files required for logging-in.
|
|
|
|
class Tasks::Splash < Task
|
|
|
|
attr_reader :image
|
|
|
|
|
|
|
|
def initialize(image)
|
2019-12-28 04:43:28 +03:00
|
|
|
add_dependency(:Target, :Graphics)
|
2019-12-23 06:32:34 +03:00
|
|
|
@image = image
|
|
|
|
end
|
|
|
|
|
|
|
|
def run()
|
2019-12-24 09:48:24 +03:00
|
|
|
begin
|
2020-03-10 00:34:31 +03:00
|
|
|
System.run($PROGRAM_NAME, "/applets/boot-splash.mrb", image)
|
|
|
|
# Don't fail the boot if the splash fails
|
2019-12-24 09:48:24 +03:00
|
|
|
rescue System::CommandError
|
|
|
|
end
|
2019-12-23 06:32:34 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
def name()
|
|
|
|
"#{super}(#{image})"
|
|
|
|
end
|
2019-12-28 04:56:56 +03:00
|
|
|
|
|
|
|
def ux_priority()
|
|
|
|
-100
|
|
|
|
end
|
2019-12-23 06:32:34 +03:00
|
|
|
end
|