1
0
Fork 0
forked from wry/wry

all: drop all privileges at startup

This commit is contained in:
Julian Orth 2025-05-10 22:36:39 +02:00
parent b3334449a6
commit af6e868a78
3 changed files with 97 additions and 0 deletions

View file

@ -28,6 +28,7 @@ use {
compositor::start_compositor,
format::{Format, ref_formats},
portal,
pr_caps::drop_all_pr_caps,
},
::log::Level,
clap::{Args, Parser, Subcommand, ValueEnum, ValueHint, builder::PossibleValue},
@ -233,6 +234,7 @@ impl ValueEnum for &'static Format {
pub fn main() {
let cli = Jay::parse();
drop_all_pr_caps();
match cli.command {
Cmd::Run(a) => start_compositor(cli.global, a),
Cmd::GenerateCompletion(g) => generate::main(g),