summaryrefslogtreecommitdiffstats
path: root/composer-noxdg.patch
blob: 607e4495286ab5f3a184259535a7f56a9e17fb8b (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-01-25 09:39:15.000000000 +0100
+++ ./src/Composer/Factory.php	2022-01-25 09:50:21.374957261 +0100
@@ -701,6 +701,10 @@ class Factory
      */
     private static function useXdg()
     {
+        // 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;