mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-07-31 13:18:46 +00:00
feat: add kernel to troubleshooting info
This commit is contained in:
parent
b64364c6d1
commit
2e05580f36
1 changed files with 7 additions and 1 deletions
|
@ -9,7 +9,7 @@ use crate::{
|
|||
xdg::XDG,
|
||||
};
|
||||
use relm4::prelude::*;
|
||||
use std::env;
|
||||
use std::{env, fs::read_to_string};
|
||||
|
||||
pub fn create_about_dialog() -> adw::AboutDialog {
|
||||
adw::AboutDialog::builder()
|
||||
|
@ -41,6 +41,12 @@ pub fn populate_debug_info(dialog: &adw::AboutDialog) {
|
|||
.map(|f| f.to_string())
|
||||
.unwrap_or("unknown".into())
|
||||
),
|
||||
format!(
|
||||
"Kernel: {}",
|
||||
read_to_string("/proc/version")
|
||||
.unwrap_or("Unable to read /proc/version".into())
|
||||
.trim()
|
||||
),
|
||||
format!(
|
||||
"Session type: {}",
|
||||
env::var("XDG_SESSION_TYPE").unwrap_or("unknown".into())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue