From 8328d851ade5e4fe2cfe1c9a0955fd7b668d99c0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 23 Jan 2015 06:19:20 -0500 Subject: [PATCH] Add a --system option This is a natural counterpart to --user with the opposite meaning. In the future, we may start interpreting the absence of either as 'operate on both'. --- xdg-app-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xdg-app-main.c b/xdg-app-main.c index 6fca4ca88..5d47ed67c 100644 --- a/xdg-app-main.c +++ b/xdg-app-main.c @@ -46,7 +46,8 @@ static GOptionEntry global_entries[] = { }; static GOptionEntry user_entries[] = { - { "user", 0, 0, G_OPTION_ARG_NONE, &opt_user, "Work on user installed apps", NULL }, + { "user", 0, 0, G_OPTION_ARG_NONE, &opt_user, "Work on user installations", NULL }, + { "system", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_user, "Work on system-wide installations", NULL }, { NULL } };