summaryrefslogtreecommitdiffstats
path: root/pie-noxdg.patch
blob: 896ab516273c2102154ac41b134852aec71f8b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -up ./vendor/composer/composer/src/Composer/Factory.php.noxdg ./vendor/composer/composer/src/Composer/Factory.php
--- ./vendor/composer/composer/src/Composer/Factory.php.noxdg	2024-04-20 12:34:54.442117723 +0200
+++ ./vendor/composer/composer/src/Composer/Factory.php	2024-04-20 12:35:39.497640757 +0200
@@ -702,6 +702,10 @@ class Factory
 
     private static function useXdg(): bool
     {
+        // As XDG is very partially implemented
+        // resulting in command/code in ~/.config
+        return false;
+
         foreach (array_keys($_SERVER) as $key) {
             if (strpos((string) $key, 'XDG_') === 0) {
                 return true;
diff -up ./src/Platform.php.old ./src/Platform.php
--- ./src/Platform.php.old	2024-12-24 10:01:31.088992537 +0100
+++ ./src/Platform.php	2024-12-24 10:01:36.394197932 +0100
@@ -23,6 +23,10 @@ class Platform
 {
     private static function useXdg(): bool
     {
+        // As XDG is very partially implemented
+        // resulting in command/code in ~/.config
+        return false;
+
         foreach (array_keys($_SERVER) as $key) {
             /** @psalm-suppress RedundantCastGivenDocblockType */
             if (strpos((string) $key, 'XDG_') === 0) {