|
|
|
@ -26,10 +26,16 @@ static double get_scale(void) |
|
|
|
|
|
|
|
|
|
static void get_exe_filename(char *buf, int sz) |
|
|
|
|
{ |
|
|
|
|
#ifdef __linux__ |
|
|
|
|
char path[512]; |
|
|
|
|
sprintf(path, "/proc/%d/exe", getpid()); |
|
|
|
|
int len = readlink(path, buf, sz - 1); |
|
|
|
|
buf[len] = '\0'; |
|
|
|
|
#elif defined(_PREFIX) |
|
|
|
|
strncpy(buf, _PREFIX, sz); |
|
|
|
|
#else |
|
|
|
|
strncpy(buf, "/usr/local/share/lite/", sz); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void init_window_icon(void) |
|
|
|
|