From 5cc2dcc864d937650f0b4ea311a25231b83e299d Mon Sep 17 00:00:00 2001
From: Lior Halphon <LIJI32@gmail.com>
Date: Sun, 28 Feb 2021 14:55:30 +0200
Subject: [PATCH] Fix #353 better

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 211345b4..caf059be 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ else
 DEFAULT := sdl
 endif
 
-ifneq ($(shell which xdg-open),)
+ifneq ($(shell which xdg-open)$(FREEDESKTOP),)
 # Running on an FreeDesktop environment, configure for (optional) installation
 DESTDIR ?= 
 PREFIX ?= /usr/local