dash-frontend: tab titles, home screen username
This commit is contained in:
6
dash-frontend/src/various.rs
Normal file
6
dash-frontend/src/various.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
pub fn get_username() -> String {
|
||||
match std::env::var("USER") {
|
||||
Ok(user) => user,
|
||||
Err(_) => String::from("anonymous"),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user