1
0
Fork 0
forked from wry/wry

portal: add a desktop portal

This commit is contained in:
Julian Orth 2022-07-30 19:21:30 +02:00
parent 323a6ed953
commit a162055f1d
38 changed files with 2389 additions and 27 deletions

View file

@ -9,7 +9,7 @@ mod set_log_level;
mod unlock;
use {
crate::compositor::start_compositor,
crate::{compositor::start_compositor, portal},
::log::Level,
clap::{ArgEnum, Args, Parser, Subcommand},
clap_complete::Shell,
@ -53,6 +53,8 @@ pub enum Cmd {
RunPrivileged(RunPrivilegedArgs),
/// Tests the events produced by a seat.
SeatTest(SeatTestArgs),
/// Run the desktop portal.
Portal,
#[cfg(feature = "it")]
RunTests,
}
@ -214,6 +216,7 @@ pub fn main() {
Cmd::Unlock => unlock::main(cli.global),
Cmd::RunPrivileged(a) => run_privileged::main(cli.global, a),
Cmd::SeatTest(a) => seat_test::main(cli.global, a),
Cmd::Portal => portal::run(cli.global),
#[cfg(feature = "it")]
Cmd::RunTests => crate::it::run_tests(),
}