Fixed app launching

This commit is contained in:
Gvidas Juknevičius 2025-06-02 10:54:54 +03:00
parent 92020c4de7
commit 2ce0f5d54f
Signed by: MCorange
GPG Key ID: 5BE6B533CB76FE86
3 changed files with 76 additions and 71 deletions

View File

@ -1,4 +1,4 @@
local CURRENT_CLIENT_VERSION = "1.0.0.2" local CURRENT_CLIENT_VERSION = "1.0.1.3"
local INSTALL_PATH = "/" local INSTALL_PATH = "/"
function http_get(url) function http_get(url)

View File

@ -142,8 +142,13 @@ local function populate_homescreen_buttons()
:setSize(FRAME_WIDTH, FRAME_HEIGHT) :setSize(FRAME_WIDTH, FRAME_HEIGHT)
:setBackground(colours.green) :setBackground(colours.green)
:setVisible(false) :setVisible(false)
local app_path = ""
app_frame:addProgram():setSize(FRAME_WIDTH, FRAME_HEIGHT):execute("/apps/" .. filename) if fs.exists("/apps/" .. filename) then
app_path = "/apps/" .. filename
elseif fs.exists("/base_apps/" .. filename) then
app_path = "/base_apps/" .. filename
end
app_frame:addProgram():setSize(FRAME_WIDTH, FRAME_HEIGHT):execute(app_path)
active_app_frames[filename] = app_frame active_app_frames[filename] = app_frame
end end

View File

@ -1,5 +1,5 @@
{ {
"version": "1.0.1.2", "version": "1.0.1.3",
"sys_files": { "sys_files": {
"/version.json": "https://git.mcorangehq.xyz/xomf/slabOS/raw/branch/main/version.json", "/version.json": "https://git.mcorangehq.xyz/xomf/slabOS/raw/branch/main/version.json",
"/app_manifest.json": "https://git.mcorangehq.xyz/xomf/slabOS/raw/branch/main/app_manifest.json", "/app_manifest.json": "https://git.mcorangehq.xyz/xomf/slabOS/raw/branch/main/app_manifest.json",