Skip to content

Conversation

@yavko
Copy link

@yavko yavko commented Jan 24, 2023

fixes: Macchina-CLI/macchina#272
Doesn't work in nix-shells in my testing

}
}

fn terminal_exec(pid: i32) -> String {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

terminal_name seems more appropriate here.


let mut terminal_name = terminal_exec(terminal_pid);
if terminal_name.is_empty() {
return "".to_string();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use String::new() instead?

Comment on lines +382 to +390
// fn terminal(&self) -> Result<String, ReadoutError> {
// use terminfo::Database;
//
// let db = Database::from_env()
// let term = db.name();
//
// Ok(term.to_string())
// }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove this commented function?

dirs = "4.0"
walkdir = "2.3.2"
os-release = "0.1"
terminfo = "0.7"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you forgot to remove this dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Terminal has weird name on NixOS with home-manager

2 participants