Skip to content
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

CentOS 7 no desktop, loginctl --output=json does not give json #1522

Open
James-Pickett opened this issue Dec 19, 2023 · 1 comment
Open

Comments

@James-Pickett
Copy link
Contributor

The desktop app icon does not work on centos 7. Logs show the loginctl list-sessions --output=json command returns invalid json. Testing on CentOS 7 vm, loginctl does not output json even when --output=json option is provided.

@RebeccaMahany
Copy link
Contributor

I see this on a CentOS 7 VM also. systemd version is 219 -- looks like this was maybe fixed sometime after version 245 per systemd/systemd#15275

Per https://repology.org/project/systemd/versions I tried CentOS Stream 9, and that does look like it would work:

$ loginctl --version
systemd 252 (252-21.el9)
+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
$ loginctl list-sessions --output=json
[{"session":"1","uid":1000,"user":"rebeccamahany-horton","seat":"","tty":"pts/0","state":"active","idle":false,"since":null}]

It also looks like CentOS 7 is EOL at the end of this June anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants