Skip to content

Commit

Permalink
fix archlinux crash when get version (#59)
Browse files Browse the repository at this point in the history
fix archlinux crash when get version
  • Loading branch information
MoYingJi authored Dec 23, 2024
1 parent b0919dd commit 9faeecf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/xim/base/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function os_info()

if os_type == "linux" then
name = linuxos.name()
version = linuxos.version() -- TODO: get linux version
if name == "archlinux" then version = "rolling" -- TODO: arch linux version
else version = linuxos.version() end -- TODO: get linux version
elseif os_type == "windows" then
name = "windows" -- winos.name()
version = winos.version()
Expand Down Expand Up @@ -177,4 +178,4 @@ end

function main()

end
end

0 comments on commit 9faeecf

Please sign in to comment.