Fallback to GTK for unrecognized OSes

This commit is contained in:
Drew DeVault 2016-04-06 18:44:24 -04:00
parent 37f0566507
commit dd5030a13b

View File

@ -19,6 +19,10 @@ namespace TrueCraft.Launcher
Application.Initialize(ToolkitType.Gtk); // TODO: Cocoa
else if (RuntimeInfo.IsWindows)
Application.Initialize(ToolkitType.Wpf);
else
// In this case they're probably using some flavor of Unix
// which probably has some flavor of GTK availble
Application.Initialize(ToolkitType.Gtk);
UserSettings.Local = new UserSettings();
UserSettings.Local.Load();
var thread = new Thread(KeepSessionAlive);