run: Fix session-bus and a11y-bus args being incorrect

This would incorrectly overwrite the a11y-bus option and not set the default
session-bus options.
This commit is contained in:
Patrick Griffis 2021-12-22 12:49:31 -06:00
parent 9f2baafb44
commit e6bd124b2c

View File

@ -278,7 +278,7 @@ flatpak_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
if (opt_a11y_bus == -1)
opt_a11y_bus = !opt_sandbox;
if (opt_session_bus == -1)
opt_a11y_bus = !opt_sandbox;
opt_session_bus = !opt_sandbox;
if (opt_sandbox)
flags |= FLATPAK_RUN_FLAG_SANDBOX | FLATPAK_RUN_FLAG_NO_SYSTEM_BUS_PROXY;