This is a simple script that will let you get the desktops current resolution. It has not been tested in linux.
It creates a hidden window, Maximizes it, and gets the window size. That's it.
It returns a Vec2(). DO NOT USE IF THE PROGRAM IS ALREADY FULLSCREEN. It will cause you some annoyances.
function GetDesktopResolution() --Vec2()
-- get current desktop resolution ; Super quick and dirty method, works on windows dont know about linux
local launchertestwindow = Window:Create(System.AppName,0,0,1024,768,Window.Tool)
launchertestwindow:Maximize()
local desktopres = Vec2(launchertestwindow:GetWidth(),launchertestwindow:GetHeight())
launchertestwindow:Release()
return desktopres
end