Issue Task Closed

#102370More a question: The order of the $defaultExecutableSearchPaths Array

Michael Kasten 11/14/23, 08:39 updated 11/22/23, 21:42

Description

Inside the Classfile:

https://github.com/TYPO3-CMS/install/blob/v12.4.4/Classes/Configuration/Image/AbstractImagePreset.php

is a PHP Array with known executable Path Informations:

protected $defaultExecutableSearchPaths = [
        '/usr/local/bin/',
        '/opt/local/bin/',
        '/usr/bin/',
        '/usr/X11R6/bin/',
        '/opt/bin/',
        'C:/php/ImageMagick/',
        'C:/php/GraphicsMagick/',
        'C:/apache/ImageMagick/',
        'C:/apache/GraphicsMagick/',
    ];

I am a little bit confused about the path order if i think about the Unix Directory Tree specifications:

1. /usr/local/bin is for programs that a normal user may run
2. /opt/local/bin Add-on application software packages, optional!
3. /usr/bin is the primary directory for executable programs.
…

Question: Why stand an optional executable path in this order bevor the primary paths of executables

In my opinion this creates unnecessary warnings, maybe there is somthing that i not know here but i guess this would be the better order:

‘/usr/bin/’,
’/usr/local/bin/’,
’/opt/bin/’,
’/opt/local/bin/’,
’/usr/X11R6/bin/’,
…..

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.