diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-07-20 18:25:48 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-20 18:25:48 +0200 |
commit | 224632be57818dc18a7283ea08edccd8ac73e9ca (patch) | |
tree | 558c54f02b81d97657811ff5b585bb92367054e0 | |
parent | cf6b9e241df39917517404bbb95557596ba063bb (diff) |
Prep v233.3: Add 'loginctl list' as a shorthand for list-sessions
-rw-r--r-- | src/login/loginctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 13d8f8074..7da27605a 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -1419,7 +1419,9 @@ static int help(int argc, char *argv[], void *userdata) { " -i --ignore-inhibitors When shutting down or sleeping, ignore inhibitors\n\n" #endif // 0 "Session Commands:\n" - " list-sessions List sessions\n" +#if 1 /// elogind has "list" as a shorthand for "list-sessions" + " list[-sessions] List sessions (default command)\n" +#endif // 1 " session-status [ID...] Show session status\n" " show-session [ID...] Show properties of sessions or the manager\n" " activate [ID] Activate a session\n" @@ -1620,7 +1622,12 @@ static int loginctl_main(int argc, char *argv[], sd_bus *bus) { static const Verb verbs[] = { { "help", VERB_ANY, VERB_ANY, 0, help }, +#if 0 /// elogind has "list" as a shorthand for "list-sessions" { "list-sessions", VERB_ANY, 1, VERB_DEFAULT, list_sessions }, +#else + { "list", VERB_ANY, 1, VERB_DEFAULT, list_sessions }, + { "list-sessions", VERB_ANY, 1, 0, list_sessions }, +#endif // 0 { "session-status", VERB_ANY, VERB_ANY, 0, show_session }, { "show-session", VERB_ANY, VERB_ANY, 0, show_session }, { "activate", VERB_ANY, 2, 0, activate }, |