absolute path for po

This commit is contained in:
Salem Yaslem 2021-02-22 18:11:16 +03:00
parent 368e206c50
commit 10c0e2f7ef

View File

@ -47,10 +47,12 @@ fn main() {
setlocale(LocaleCategory::LcAll, "");
bindtextdomain(
"blue-recorder",
std::fs::canonicalize(Path::new("po"))
.unwrap()
.to_str()
.unwrap(),
{
let mut current_exec_dir = std::env::current_exe().unwrap();
current_exec_dir.pop();
current_exec_dir
}
.join(Path::new("po")).to_str().unwrap(),
);
textdomain("blue-recorder");