Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
searchpath.cpp File Reference

Implementation of helpers to handle directory search paths. More...

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/format-string.hpp"
#include "lib/symbol.hpp"

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 

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

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

Macro Definition Documentation

◆ GET_PATH_TO_EXECUTABLE

#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

Definition at line 29 of file searchpath.cpp.