Lumiera  0.pre.03
»edit your freedom«
searchpath.cpp File Reference

Go to the source code of this file.

Description

Implementation of helpers to handle directory search paths.

Definition in file searchpath.cpp.

#include "lib/error.hpp"
#include "lib/searchpath.hpp"
#include "lib/symbol.hpp"

Macros

#define GET_PATH_TO_EXECUTABLE   "/proc/self/exe"
 how to retrieve the absolute path of the currently running executable on a Linux system: read the link provided by the kernel through /proc
 

Functions

string findExePath ()
 retrieve the location of the executable More...
 
string replaceMagicLinkerTokens (string const &src)
 replace $ORIGIN tokens in the given string More...
 
string resolveModulePath (fsys::path moduleName, string searchPath="")
 helper to establish the location to search for loadable modules, configuration files, icons and further resources. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.