Commit 2afa121a authored by Philip Withnall's avatar Philip Withnall

main: Don’t print translation header with `--help`

The correct way to tell `g_option_context_new()` not to print any
information after the options is to pass `NULL`. Passing the empty
string results in a call to `gettext ("")`, which returns the
translation’s header.

This fixes the output of `accounts-daemon --help`.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent d2abdd12
Pipeline #138449 passed with stage
in 1 minute
......@@ -217,7 +217,7 @@ main (int argc, char *argv[])
context = g_option_context_new ("");
context = g_option_context_new (NULL);
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
g_option_context_set_summary (context, _("Provides D-Bus interfaces for querying and manipulating\nuser account information."));
g_option_context_add_main_entries (context, entries, NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment