mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[build] Add support for Debian packages (#4434)
* Add support for Debian packages * SDL: add device probe
This commit is contained in:
committed by
Frans de Jonge
parent
7055ffe7d6
commit
6de5927dc2
@@ -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 = "."
|
||||
|
||||
Reference in New Issue
Block a user