sanei_config: Add PATH_SANE_DEFAULT_CONFIG_DIR to searched config dirs

merge-requests/859/head
Gioele Barabucci 2024-12-20 23:21:21 +01:00
rodzic bfe801045f
commit 79ccbb210a
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -59,8 +59,11 @@ extern "C" {
*
* The following directory list is used:
* 1st: SANE_CONFIG_DIR environment variable.
* 2nd: PATH_SANE_CONFIG_DIR set during configuration.
* 3rd: Current directory.
* 2nd: PATH_SANE_CONFIG_DIR with admin-managed files (usually
* /etc/sane.d).
* 3rd: PATH_SANE_DEFAULT_CONFIG_DIR with distro-managed files (usually
* /usr/lib/sane).
* 4th: Current directory.
* @param name filename with extension but without path (such as "mustek.conf")
*
* @return file pointer, or NULL if not found

Wyświetl plik

@ -65,7 +65,7 @@
# define PATH_SEP '/'
#endif
#define DEFAULT_DIRS "." DIR_SEP STRINGIFY(PATH_SANE_CONFIG_DIR)
#define DEFAULT_DIRS "." DIR_SEP STRINGIFY(PATH_SANE_CONFIG_DIR) DIR_SEP STRINGIFY(PATH_SANE_DEFAULT_CONFIG_DIR)
#ifdef __BEOS__
#include <FindDirectory.h>