From 67a55ff4de9ff5d255bd7c46a6f5afaa82070cb1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 21 Sep 2015 01:56:03 +0200 Subject: [PATCH] Use PROGNAME in the usage screen as well --- src/desktop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop.c b/src/desktop.c index 8fb2e2f..e062fdd 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -2787,7 +2787,7 @@ static int _error(char const * message, int ret) /* usage */ static int _usage(void) { - fputs(_("Usage: desktop [-H|-V][-a|-c|-f|-h|-n][-m monitor][-N][-w]\n" + fprintf(stderr, _("Usage: %s [-H|-V][-a|-c|-f|-h|-n][-m monitor][-N][-w]\n" " -H Place icons horizontally\n" " -V Place icons vertically\n" " -a Display the applications registered\n" @@ -2797,7 +2797,7 @@ static int _usage(void) " -m Monitor where to display the desktop\n" " -n Do not display icons on the desktop\n" " -N Do not intercept mouse clicks on the desktop\n" -" -w Draw the desktop as a window\n"), stderr); +" -w Draw the desktop as a window\n"), PROGNAME); return 1; }