From 9f25070976e01f61ae190be772dec41810078f4c Mon Sep 17 00:00:00 2001 From: crater2150 <crater@qwertyuiop.de> Date: Sat, 12 May 2018 18:44:07 +0200 Subject: [PATCH] Use XDG dir for applications if available --- separable/binder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/separable/binder.lua b/separable/binder.lua index 9c48676..95edf94 100644 --- a/separable/binder.lua +++ b/separable/binder.lua @@ -10,7 +10,7 @@ local globalkeys = {} app_folders = { "/usr/share/applications", "/usr/local/share/applications", - os.getenv("HOME") .. "/.local/applications", + (os.getenv("XDG_DATA_HOME") or os.getenv("HOME") .. "/.local/share") .. "/applications", os.getenv("HOME") .. "/Desktop" } local menubar = require("menubar")