do not enable linux_headless when flatpak or appimage is enabled

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-09 11:35:14 +08:00
parent 1f06dc7122
commit afe07dde6f
3 changed files with 20 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ impl RendezvousMediator {
});
}
#[cfg(all(target_os = "linux", feature = "linux_headless"))]
#[cfg(not(any(feature = "flatpak", feature = "appimage")))]
crate::platform::linux_desktop_manager::start_xdesktop();
loop {
Config::reset_online();
@@ -101,6 +102,7 @@ impl RendezvousMediator {
// It should be better to call stop_xdesktop.
// But for server, it also is Ok without calling this method.
// #[cfg(all(target_os = "linux", feature = "linux_headless"))]
// #[cfg(not(any(feature = "flatpak", feature = "appimage")))]
// crate::platform::linux_desktop_manager::stop_xdesktop();
}