enable filter in README example
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
88ac05be6d
commit
8223a9ee66
@ -84,6 +84,7 @@ This adds the `environment.fortify` option:
|
|||||||
|
|
||||||
chromium.dbus = {
|
chromium.dbus = {
|
||||||
configSystem = {
|
configSystem = {
|
||||||
|
filter = true;
|
||||||
talk = [
|
talk = [
|
||||||
"org.bluez"
|
"org.bluez"
|
||||||
"org.freedesktop.Avahi"
|
"org.freedesktop.Avahi"
|
||||||
@ -91,6 +92,7 @@ This adds the `environment.fortify` option:
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
filter = true;
|
||||||
talk = [
|
talk = [
|
||||||
"org.freedesktop.DBus"
|
"org.freedesktop.DBus"
|
||||||
"org.freedesktop.FileManager1"
|
"org.freedesktop.FileManager1"
|
||||||
|
@ -33,6 +33,9 @@ func (c *Config) Args(bus [2]string) (args []string) {
|
|||||||
|
|
||||||
args = make([]string, 0, argc)
|
args = make([]string, 0, argc)
|
||||||
args = append(args, bus[0], bus[1])
|
args = append(args, bus[0], bus[1])
|
||||||
|
if c.Filter {
|
||||||
|
args = append(args, "--filter")
|
||||||
|
}
|
||||||
for _, name := range c.See {
|
for _, name := range c.See {
|
||||||
args = append(args, "--see="+name)
|
args = append(args, "--see="+name)
|
||||||
}
|
}
|
||||||
@ -51,9 +54,6 @@ func (c *Config) Args(bus [2]string) (args []string) {
|
|||||||
if c.Log {
|
if c.Log {
|
||||||
args = append(args, "--log")
|
args = append(args, "--log")
|
||||||
}
|
}
|
||||||
if c.Filter {
|
|
||||||
args = append(args, "--filter")
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user