Use device type if username is unavailable
This commit is contained in:
2
Main.gd
2
Main.gd
@@ -25,6 +25,8 @@ func _ready():
|
|||||||
|
|
||||||
if OS.has_environment("USERNAME"):
|
if OS.has_environment("USERNAME"):
|
||||||
hostname = "%s/%s" % [OS.get_environment("USERNAME"), hostname]
|
hostname = "%s/%s" % [OS.get_environment("USERNAME"), hostname]
|
||||||
|
else:
|
||||||
|
hostname = "%s/%s" % [OS.get_name(), hostname]
|
||||||
|
|
||||||
print("Starting render node")
|
print("Starting render node")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user