feat: add --no-xwayland argument for running without Xwayland
This leaves the default behavior in place. When --no-xwayland is not passed, Xwayland is started. If it is passed, then starting Xwayland is skipped.
This commit is contained in:
parent
7aa0942ec1
commit
98cca4f3b7
5 changed files with 33 additions and 7 deletions
|
|
@ -296,6 +296,8 @@ pub struct Common {
|
|||
|
||||
#[cfg(feature = "systemd")]
|
||||
pub inhibit_lid_fd: Option<OwnedFd>,
|
||||
|
||||
pub with_xwayland: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -626,6 +628,7 @@ impl State {
|
|||
socket: OsString,
|
||||
handle: LoopHandle<'static, State>,
|
||||
signal: LoopSignal,
|
||||
with_xwayland: bool,
|
||||
) -> State {
|
||||
let requested_languages = DesktopLanguageRequester::requested_languages();
|
||||
i18n_embed::select(&*LANG_LOADER, &Localizations, &requested_languages)
|
||||
|
|
@ -801,6 +804,8 @@ impl State {
|
|||
|
||||
#[cfg(feature = "systemd")]
|
||||
inhibit_lid_fd: None,
|
||||
|
||||
with_xwayland,
|
||||
},
|
||||
backend: BackendData::Unset,
|
||||
ready: Once::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue