mirror of
https://github.com/cxreiff/ttysvr.git
synced 2025-08-15 23:27:47 +02:00
fix: removed WinitPlugin to allow SSH
This commit is contained in:
parent
9a02af7812
commit
b2ed22bda8
2 changed files with 7 additions and 5 deletions
|
@ -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!
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue