mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
30 lines
1015 B
Diff
30 lines
1015 B
Diff
--- a/src/lnav.cc
|
|
+++ b/src/lnav.cc
|
|
@@ -163,7 +163,7 @@
|
|
#include "yajlpp/yajlpp.hh"
|
|
|
|
#ifndef SYSCONFDIR
|
|
-# define SYSCONFDIR "/usr/etc"
|
|
+# define SYSCONFDIR "@TERMUX_PREFIX@/etc"
|
|
#endif
|
|
|
|
using namespace std::literals::chrono_literals;
|
|
@@ -2406,7 +2406,7 @@
|
|
lnav_data.ld_config_paths.insert(lnav_data.ld_config_paths.begin(),
|
|
SYSCONFDIR "/lnav");
|
|
lnav_data.ld_config_paths.insert(lnav_data.ld_config_paths.begin(),
|
|
- "/etc/lnav");
|
|
+ "@TERMUX_PREFIX@/etc/lnav");
|
|
|
|
if (lnav_data.ld_debug_log_name != DEFAULT_DEBUG_LOG) {
|
|
lnav_log_level = lnav_log_level_t::TRACE;
|
|
@@ -2363,7 +2363,7 @@
|
|
* so that it will try the default path.
|
|
*/
|
|
setenv("TERMINFO_DIRS",
|
|
- "/usr/share/terminfo:/lib/terminfo:/usr/share/lib/terminfo",
|
|
+ "@TERMUX_PREFIX@/share/terminfo:@TERMUX_PREFIX@/lib/terminfo:@TERMUX_PREFIX@/etc/terminfo",
|
|
0);
|
|
|
|
{
|