From ce804af1dabd6afefcb0535734d86cc4f2d58640 Mon Sep 17 00:00:00 2001
From: the-sane <3657071+the-sane@users.noreply.github.com>
Date: Fri, 18 Apr 2025 14:58:18 -0400
Subject: [PATCH] export WINEDLLOVERRIDES to stop wine's .desktop file creation

---
 lug-helper.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lug-helper.sh b/lug-helper.sh
index 4d65669..6007f06 100755
--- a/lug-helper.sh
+++ b/lug-helper.sh
@@ -2699,6 +2699,8 @@ install_game_wine() {
     export WINE="$wine_path/wine"
     export WINESERVER="$wine_path/wineserver"
     export WINEPREFIX="$install_dir"
+    export WINEDLLOVERRIDES="winemenubuilder.exe=d" # Stop wine from creating its own .desktop entries
+
     debug_print continue "Preparing the wine prefix. Please wait; this will take a moment..."
     "$winetricks_bin" -q arial tahoma dxvk powershell win11 >"$tmp_install_log" 2>&1