-
Notifications
You must be signed in to change notification settings - Fork 103
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 --output-json
does not output json, eventually leading to missing systray icon
#1758
Comments
Linking another related issue: #1522 Could you pass along your OS version and/or systemd version to help us reproduce and test a fix? Thank you! |
Yes, this is on Arch Linux (rolling) and systemd 256
|
This change is merged and will be released in the next launcher release (date TBD but likely within a month). |
That's awesome, thank you & kudos @RebeccaMahany! |
This was fixed in the v1.9.4 release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been chasing for a couple days why the kolide agent wasn't showing a systray icon for me and some other coworkers who use Arch Linux (btw).
In
/var/kolide-k2/k2device.kolide.com/debug.json
I was able to find this message being spammed:Which seems to be caused by this line
launcher/ee/consoleuser/consoleuser_linux.go
Line 23 in d80b842
I believe this is not working because
loginctl --output-json
does not output json on recent systemd versions:The correct flag to get JSON output now seems to be
--json=short
:I was able to work around this by replacing
/usr/bin/loginctl
with a shim script that translates--output=json
to--json=short
, but this is obviously not a very good workaround as it won't survive a systemd update. Placing the shim in/usr/local/bin/
or similar is not possible as Kolide hardcodes this path:launcher/ee/allowedcmd/cmd_linux.go
Line 85 in d80b842
It would be great if Kolide would support newer loginctl versions and pass the appropriate flag to them!
The text was updated successfully, but these errors were encountered: