First implementation of unix-like data directory

It basically works by setting the data directory to

$prefix/share/lite-xl

where $prefix is determined so that $prefix/bin corresponds to EXEDIR.

The packages 'user' and 'user.*' are loaded from the directory
'$HOME/.config/lite-xl'.
This commit is contained in:
Francesco Abbate
2020-12-02 00:23:15 +01:00
parent e9938862b5
commit 3589d7d3c0
6 changed files with 49 additions and 10 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ command.add(nil, {
end,
["core:open-user-module"] = function()
core.root_view:open_doc(core.open_doc(EXEDIR .. "/data/user/init.lua"))
core.root_view:open_doc(core.open_doc(USERDIR .. "/init.lua"))
end,
["core:open-project-module"] = function()