termux-packages/packages/vivid/src-main.rs.patch

23 lines
887 B
Diff
Raw Normal View History

2022-03-31 04:56:34 +02:00
diff --git a/src/main.rs b/src/main.rs
index 67a3216..1dbd984 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -24,7 +24,7 @@ use crate::theme::Theme;
#[folder = "themes/"]
struct ThemeAssets;
-const THEME_PATH_SYSTEM: &str = "/usr/share/vivid/themes/";
+const THEME_PATH_SYSTEM: &str = "@TERMUX_PREFIX@/share/vivid/themes/";
2022-03-31 04:56:34 +02:00
fn get_user_config_path() -> PathBuf {
#[cfg(target_os = "macos")]
@@ -50,7 +50,7 @@ fn load_filetypes_database(matches: &ArgMatches, user_config_path: &PathBuf) ->
let database_path_env_s = env::var("VIVID_DATABASE").ok();
let database_path_env = database_path_env_s.as_ref().map(Path::new);
- let database_path_system = Path::new("/usr/share/vivid/filetypes.yml");
+ let database_path_system = Path::new("@TERMUX_PREFIX@/share/vivid/filetypes.yml");
2022-03-31 04:56:34 +02:00
let database_path = database_path_from_arg
.or(database_path_env)