enable filter in README example

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra 2024-09-11 16:35:23 +09:00
parent 88ac05be6d
commit 8223a9ee66
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
2 changed files with 5 additions and 3 deletions

View File

@ -84,6 +84,7 @@ This adds the `environment.fortify` option:
chromium.dbus = {
configSystem = {
filter = true;
talk = [
"org.bluez"
"org.freedesktop.Avahi"
@ -91,6 +92,7 @@ This adds the `environment.fortify` option:
];
};
config = {
filter = true;
talk = [
"org.freedesktop.DBus"
"org.freedesktop.FileManager1"

View File

@ -33,6 +33,9 @@ func (c *Config) Args(bus [2]string) (args []string) {
args = make([]string, 0, argc)
args = append(args, bus[0], bus[1])
if c.Filter {
args = append(args, "--filter")
}
for _, name := range c.See {
args = append(args, "--see="+name)
}
@ -51,9 +54,6 @@ func (c *Config) Args(bus [2]string) (args []string) {
if c.Log {
args = append(args, "--log")
}
if c.Filter {
args = append(args, "--filter")
}
return
}