summaryrefslogtreecommitdiffstats
path: root/composer-noxdg.patch
blob: 73195e7b327fd0be3d2fffa8e07a22d2ceebe522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -up ./src/Composer/Factory.php.noxdg ./src/Composer/Factory.php
--- ./src/Composer/Factory.php.noxdg	2022-03-16 09:51:30.398977729 +0100
+++ ./src/Composer/Factory.php	2022-03-16 09:52:14.113841110 +0100
@@ -665,6 +665,10 @@ class Factory
 
     private static function useXdg(): bool
     {
+        // As XDG is very patially implemted
+        // resulting in command/code in ~/.config
+        return false;
+
         foreach (array_keys($_SERVER) as $key) {
             if (strpos($key, 'XDG_') === 0) {
                 return true;