fix: removed WinitPlugin to allow SSH

This commit is contained in:
cxreiff 2024-10-09 18:08:32 -07:00
parent 9a02af7812
commit b2ed22bda8
2 changed files with 7 additions and 5 deletions

View file

@ -99,7 +99,5 @@ This includes a decent variety of terminals, but I have personally confirmed goo
### ssh
Because bevy is being used here in a somewhat unconventional way, currently bevy will still look for a
windowing system even though a window is never created. This means that there are issues when a window
server is not available, for example when running this over SSH. I am investigating a fix, perhaps through
disabling a default bevy feature.
I have recently added a change that has allowed me to run the screensavers over SSH. This is not very well
tested however, so please open an issue if you run into problems!

View file

@ -1,6 +1,9 @@
use std::time::Duration;
use bevy::{app::ScheduleRunnerPlugin, log::LogPlugin, prelude::*, window::ExitCondition};
use bevy::{
app::ScheduleRunnerPlugin, log::LogPlugin, prelude::*, window::ExitCondition,
winit::WinitPlugin,
};
use bevy_ratatui::RatatuiPlugins;
use bevy_ratatui_render::RatatuiRenderPlugin;
use logo::LogoPath;
@ -29,6 +32,7 @@ impl Plugin for AppPlugin {
exit_condition: ExitCondition::DontExit,
close_when_requested: false,
})
.disable::<WinitPlugin>()
.disable::<LogPlugin>(),
ScheduleRunnerPlugin::run_loop(Duration::from_secs_f64(1. / 60.)),
RatatuiPlugins::default(),