Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Commit 8410339

Browse files
author
icelayer
committed
Fixed config and updated tilda processing
1 parent 5e0594c commit 8410339

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/base/config.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#![allow(deprecated)]
22

33
use crate::base::filesystem;
4-
use directories::ProjectDirs;
4+
use directories::{BaseDirs, ProjectDirs};
55
use std::path::PathBuf;
66

7-
pub const VERSION: &str = "0.3.1-dev";
8-
pub const DEV_MODE: bool = true;
7+
pub const VERSION: &str = "0.3.1";
8+
pub const DEV_MODE: bool = false;
99
pub const SAFE_HISTORY: bool = true;
1010

1111
pub const SYS_BITS: u32 = 2048;
@@ -15,7 +15,12 @@ pub const BLOCK_BITS: u32 = 4096000;
1515
pub const SUPPORTED_FORMATS: [&str; 2] = ["text", "file"];
1616

1717
pub fn linux_home_path() -> String {
18-
std::env::home_dir().unwrap().to_str().unwrap().to_string()
18+
BaseDirs::new()
19+
.unwrap()
20+
.home_dir()
21+
.to_str()
22+
.unwrap()
23+
.to_string()
1924
}
2025

2126
pub fn tilda_to_abs_path(path_with_tilda: String) -> String {
@@ -38,7 +43,7 @@ pub fn path() -> PathBuf {
3843
}
3944

4045
pub fn default_url() -> String {
41-
String::from("http://127.0.0.1:1337/")
46+
String::from("http://bald.su:1337/")
4247
}
4348

4449
pub fn supported_formats() -> Vec<String> {

0 commit comments

Comments
 (0)