Implement a proper search list for path that may contain data files. This should include (at least) the current directory, the executable's directory, $XDG_DATA_HOME and ($XDG_DATA_DIRS or "/usr/local/share:/usr/share"). This might require some string contruction tools from Chocolate Doom.
Implement a proper search list for path that may contain data files. This should include (at least) the current directory, the executable's directory, $XDG_DATA_HOME and ($XDG_DATA_DIRS or "/usr/local/share:/usr/share"). This might require some string contruction tools from Chocolate Doom.