mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 13:31:36 +03:00
01e298eafc
That is, some devices, notable google-walleye, fail to show the splash for yet unknown reasons.
21 lines
369 B
Ruby
21 lines
369 B
Ruby
# Adds a minimal set of files required for logging-in.
|
|
class Tasks::Splash < Task
|
|
attr_reader :image
|
|
|
|
def initialize(image)
|
|
add_dependency(:SingletonTask, :Graphics)
|
|
@image = image
|
|
end
|
|
|
|
def run()
|
|
begin
|
|
System.run("ply-image", "/splash.#{image}.png")
|
|
rescue System::CommandError
|
|
end
|
|
end
|
|
|
|
def name()
|
|
"#{super}(#{image})"
|
|
end
|
|
end
|