mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-07 20:10:04 +00:00
24 lines
977 B
Diff
24 lines
977 B
Diff
--- a/zellij-server/src/pty.rs
|
|
+++ b/zellij-server/src/pty.rs
|
|
@@ -1048,7 +1048,7 @@
|
|
|
|
pub fn get_default_shell() -> PathBuf {
|
|
PathBuf::from(std::env::var("SHELL").unwrap_or_else(|_| {
|
|
- log::warn!("Cannot read SHELL env, falling back to use /bin/sh");
|
|
- "/bin/sh".to_string()
|
|
+ log::warn!("Cannot read SHELL env, falling back to use @TERMUX_PREFIX@/bin/sh");
|
|
+ "@TERMUX_PREFIX@/bin/sh".to_string()
|
|
}))
|
|
}
|
|
--- a/zellij-utils/src/consts.rs
|
|
+++ b/zellij-utils/src/consts.rs
|
|
@@ -13,7 +13,7 @@ pub const DEFAULT_SCROLL_BUFFER_SIZE: usize = 10_000;
|
|
pub static SCROLL_BUFFER_SIZE: OnceCell<usize> = OnceCell::new();
|
|
pub static DEBUG_MODE: OnceCell<bool> = OnceCell::new();
|
|
|
|
-pub const SYSTEM_DEFAULT_CONFIG_DIR: &str = "/etc/zellij";
|
|
+pub const SYSTEM_DEFAULT_CONFIG_DIR: &str = "@TERMUX_PREFIX@/etc/zellij";
|
|
pub const SYSTEM_DEFAULT_DATA_DIR_PREFIX: &str = system_default_data_dir();
|
|
|
|
const fn system_default_data_dir() -> &'static str {
|