mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Pruned gem usage, replaced Launchy since it will cause a command prompt to momentarily appear.
This commit is contained in:
@@ -32,6 +32,18 @@ class W3DHub
|
||||
linux? || mac?
|
||||
end
|
||||
|
||||
def self.url(path)
|
||||
raise "Hazardous input: #{path}" if path.include?("&&") || path.include?(";")
|
||||
|
||||
if windows?
|
||||
system("start #{path}")
|
||||
elsif linux?
|
||||
system("xdg-open #{path}")
|
||||
elsif mac?
|
||||
system("open #{path}")
|
||||
end
|
||||
end
|
||||
|
||||
def self.prompt_for_nickname(accept_callback: nil, cancel_callback: nil)
|
||||
CyberarmEngine::Window.instance.push_state(
|
||||
W3DHub::States::PromptDialog,
|
||||
|
||||
Reference in New Issue
Block a user