rgwood / systemctl-tui

A fast, simple TUI for interacting with systemd services and their logs
MIT License
235 stars 5 forks source link

Fix failure to launch when running as root #13

Closed rgwood closed 7 months ago

rgwood commented 7 months ago

The recent change to pull in user services had an unfortunate consequence: we now crash on launch when running as root (which has no user services).

As a fix, log the error and continue if we're running as root.