From bde3101c423d440779ba85f77684c8320a71ac0f Mon Sep 17 00:00:00 2001 From: Aaahh Ahh Date: Sun, 30 Dec 2018 16:49:40 -0500 Subject: [PATCH] Check SHADERDIR exist Unity has incorrectly set XDG_CONFIG_DIRS to a path that does not exist --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 5c640ad..1e7a1f3 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,9 @@ ifeq ($(INSTALL),unix) ifndef SHADERDIR ifdef XDG_CONFIG_DIRS SHADERDIR = /$(firstword $(subst :, ,$(XDG_CONFIG_DIRS)))/glava/ + ifeq ($(wildcard $(SHADERDIR)/..),) + SHADERDIR = /etc/xdg/glava/ + endif else SHADERDIR = /etc/xdg/glava/ endif