diff options
author | Alexander Larsson <alexander.larsson@gmail.com> | 2016-04-14 19:30:57 +0200 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2016-04-14 19:30:57 +0200 |
commit | b06528e0eff1ef4a3ce47bfed0d9b847e8907d45 (patch) | |
tree | 8d9a65aac9a622ffd98434e3601a052927ba3152 /app | |
parent | 1dd993cad6260aa181e767b5370e27f72ffd6217 (diff) | |
parent | fd4c1018d4d2e487fb4309337504db954b302f5d (diff) | |
download | xdg-app-b06528e0eff1ef4a3ce47bfed0d9b847e8907d45.tar.gz |
Merge pull request #127 from matthiasclasen/bus-logging
Bus logging
Diffstat (limited to 'app')
-rw-r--r-- | app/xdg-app-builtins-run.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/xdg-app-builtins-run.c b/app/xdg-app-builtins-run.c index 9f5c898..42fd32b 100644 --- a/app/xdg-app-builtins-run.c +++ b/app/xdg-app-builtins-run.c @@ -39,6 +39,8 @@ static char *opt_arch; static char *opt_branch; static char *opt_command; static gboolean opt_devel; +static gboolean opt_log_session_bus; +static gboolean opt_log_system_bus; static char *opt_runtime; static char *opt_runtime_version; @@ -49,6 +51,8 @@ static GOptionEntry options[] = { { "devel", 'd', 0, G_OPTION_ARG_NONE, &opt_devel, "Use development runtime", NULL }, { "runtime", 0, 0, G_OPTION_ARG_STRING, &opt_runtime, "Runtime to use", "RUNTIME" }, { "runtime-version", 0, 0, G_OPTION_ARG_STRING, &opt_runtime_version, "Runtime version to use", "VERSION" }, + { "log-session-bus", 0, 0, G_OPTION_ARG_NONE, &opt_log_session_bus, "Log session bus calls", NULL }, + { "log-system-bus", 0, 0, G_OPTION_ARG_NONE, &opt_log_system_bus, "Log system bus calls", NULL }, { NULL } }; @@ -118,7 +122,9 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError ** arg_context, opt_runtime, opt_runtime_version, - opt_devel ? XDG_APP_RUN_FLAG_DEVEL : 0, + (opt_devel ? XDG_APP_RUN_FLAG_DEVEL : 0) | + (opt_log_session_bus ? XDG_APP_RUN_FLAG_LOG_SESSION_BUS : 0) | + (opt_log_system_bus ? XDG_APP_RUN_FLAG_LOG_SYSTEM_BUS : 0), opt_command, &argv[rest_argv_start + 1], rest_argc - 1, |