i3-nagbar: take our terminal execution kludge to the next level

Please read commit 2bf80528bd first.
Then read the comment within the code of this commit.
Then run in circles and cry loudly.

fixes #1002
fixes #1026
This commit is contained in:
Michael Stapelberg
2013-06-10 22:55:39 +02:00
parent a99fc537fc
commit d51173b2ba
3 changed files with 113 additions and 14 deletions

View File

@ -364,4 +364,12 @@ bool is_debug_build() __attribute__((const));
*/
char *get_process_filename(const char *prefix);
/**
* This function returns the absolute path to the executable it is running in.
*
* The implementation follows http://stackoverflow.com/a/933996/712014
*
*/
const char *get_exe_path(const char *argv0);
#endif