-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loginctl: list-{users,sessions}: add a column for showing state #27606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Could you add a brief test for the fields in TEST-73-LOCALE ?
14038c6
to
70f8230
Compare
70f8230
to
7e969f2
Compare
@YHNdnzj I wonder: is the state really so useful to users that it needs to be listed? It seems nobody has ever asked for this... |
@bluca I don't think the CI failures are related? |
Don't worry about the shellcheck stuff - a new version of shellcheck got out with additional checks. I'll fix it when I do another round of shell-related fixes. |
23d2757
to
82a7c53
Compare
one of those days, if we keep adding properties to the table we should add a new version of the ListSession() and other methods that just pass the data along entirely. The many roundtrips really suck. but that is for another time i guess. |
lgtm |
82a7c53
to
306ff2e
Compare
In systemd 254 the `loginctl list-sessions --json` output was modified slightly: Before ``` [{"session":"4","uid":1000,"user":"core","seat":"","tty":""}] ``` After ``` [{"session":"17","uid":1000,"user":"core","seat":"","tty":"n/a","state":"active","idle":false,"since":null}] ``` Notice the change from `""` to `"n/a"` for the `tty` field. This change probably happened in one of: - systemd/systemd#27769 - systemd/systemd#27740 - systemd/systemd#27606 Let's update the code to handle the new case. Fixes coreos/fedora-coreos-tracker#1547
In systemd 254 the `loginctl list-sessions --json` output was modified slightly: Before ``` [{"session":"4","uid":1000,"user":"core","seat":"","tty":""}] ``` After ``` [{"session":"17","uid":1000,"user":"core","seat":"","tty":"n/a","state":"active","idle":false,"since":null}] ``` Notice the change from `""` to `"n/a"` for the `tty` field. This change probably happened in one of: - systemd/systemd#27769 - systemd/systemd#27740 - systemd/systemd#27606 Let's update the code to handle the new case and rename the function to be a little more appropriate since the use case for it is narrow. Fixes coreos/fedora-coreos-tracker#1547
In systemd 254 the `loginctl list-sessions --json` output was modified slightly: Before ``` [{"session":"4","uid":1000,"user":"core","seat":"","tty":""}] ``` After ``` [{"session":"17","uid":1000,"user":"core","seat":"","tty":"n/a","state":"active","idle":false,"since":null}] ``` Notice the change from `""` to `"n/a"` for the `tty` field. This change probably happened in one of: - systemd/systemd#27769 - systemd/systemd#27740 - systemd/systemd#27606 Let's update the code to handle the new case and rename the function to be a little more appropriate since the use case for it is narrow. Fixes coreos/fedora-coreos-tracker#1547
In systemd 254 the `loginctl list-sessions --json` output was modified slightly: Before ``` [{"session":"4","uid":1000,"user":"core","seat":"","tty":""}] ``` After ``` [{"session":"17","uid":1000,"user":"core","seat":"","tty":"n/a","state":"active","idle":false,"since":null}] ``` Notice the change from `""` to `"n/a"` for the `tty` field. This change probably happened in one of: - systemd/systemd#27769 - systemd/systemd#27740 - systemd/systemd#27606 Let's update the code to handle the new case and rename the function to be a little more appropriate since the use case for it is narrow. Fixes coreos/fedora-coreos-tracker#1547
No description provided.