mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
SDL: add flatpak flavor (#11833)
* ship metadata with generic linux binaries * append release version & data at build time
This commit is contained in:
@@ -17,7 +17,7 @@ function DataStorage:getDataDir()
|
||||
local package_name = app_id:match("^(.-)_")
|
||||
-- confined ubuntu app has write access to this dir
|
||||
data_dir = string.format("%s/%s", os.getenv("XDG_DATA_HOME"), package_name)
|
||||
elseif os.getenv("APPIMAGE") or os.getenv("KO_MULTIUSER") then
|
||||
elseif os.getenv("APPIMAGE") or os.getenv("FLATPAK") or os.getenv("KO_MULTIUSER") then
|
||||
if os.getenv("XDG_CONFIG_HOME") then
|
||||
data_dir = string.format("%s/%s", os.getenv("XDG_CONFIG_HOME"), "koreader")
|
||||
if lfs.attributes(os.getenv("XDG_CONFIG_HOME"), "mode") ~= "directory" then
|
||||
|
||||
Reference in New Issue
Block a user