trivial wayland changes
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
6fb52573e7
commit
9591c908a1
@ -17,18 +17,18 @@ pub fn set_wayland_scrap_map_err() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn map_err_scrap(err: String) -> io::Error {
|
fn map_err_scrap(err: String) -> io::Error {
|
||||||
// REMOVE ME ===================================== uncomment to handle error
|
// to-do: Remove this the following log
|
||||||
// // to-do: Handle error better, do not restart server
|
|
||||||
// if err.starts_with("Did not receive a reply") {
|
|
||||||
// log::error!("Fatal pipewire error, {}", &err);
|
|
||||||
// std::process::exit(-1);
|
|
||||||
// }
|
|
||||||
|
|
||||||
log::error!(
|
log::error!(
|
||||||
"REMOVE ME ===================================== wayland scrap error {}",
|
"REMOVE ME ===================================== wayland scrap error {}",
|
||||||
&err
|
&err
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// to-do: Handle error better, do not restart server
|
||||||
|
if err.starts_with("Did not receive a reply") {
|
||||||
|
log::error!("Fatal pipewire error, {}", &err);
|
||||||
|
std::process::exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
if DISTRO.name.to_uppercase() == "Ubuntu".to_uppercase() {
|
if DISTRO.name.to_uppercase() == "Ubuntu".to_uppercase() {
|
||||||
if DISTRO.version_id < "21".to_owned() {
|
if DISTRO.version_id < "21".to_owned() {
|
||||||
io::Error::new(io::ErrorKind::Other, SCRAP_UBUNTU_HIGHER_REQUIRED)
|
io::Error::new(io::ErrorKind::Other, SCRAP_UBUNTU_HIGHER_REQUIRED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user