[build] Add support for Debian packages (#4434)

* Add support for Debian packages

* SDL: add device probe
This commit is contained in:
Martín Fernández
2019-01-03 18:21:35 +01:00
committed by Frans de Jonge
parent 7055ffe7d6
commit 6de5927dc2
9 changed files with 223 additions and 9 deletions

View File

@@ -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") then
elseif os.getenv("APPIMAGE") or os.getenv("KO_MULTIUSER") then
data_dir = string.format("%s/%s/%s", os.getenv("HOME"), ".config", "koreader")
else
data_dir = "."