Add localization

This commit is contained in:
Jeremy Soller 2024-05-07 10:07:48 -06:00
parent ef69fe83bf
commit 93d4818823
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
8 changed files with 365 additions and 3 deletions

View file

@ -33,6 +33,8 @@ use tokio::{sync::mpsc, task, time};
use wayland_client::{protocol::wl_output::WlOutput, Proxy};
pub fn main(current_user: pwd::Passwd) -> Result<(), Box<dyn std::error::Error>> {
crate::localize::localize();
//TODO: use accountsservice
let icon_path = Path::new("/var/lib/AccountsService/icons").join(&current_user.name);
let icon_opt = if icon_path.is_file() {