mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 06:18:17 +00:00
Also fix launcher for netbsd
This commit is contained in:
parent
374f7abb5d
commit
8fd92df7ae
1 changed files with 8 additions and 0 deletions
|
|
@ -109,6 +109,14 @@ read_exe_path(char *exe, size_t buf_sz) {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
#elif defined(__NetBSD__)
|
||||
|
||||
static inline bool
|
||||
read_exe_path(char *exe, size_t buf_sz) {
|
||||
if (realpath("/proc/curproc/exe", exe) == NULL) { fprintf(stderr, "Failed to read /proc/self/exe\n"); return false; }
|
||||
return true;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static inline bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue