Follow-up from "kcm/autostart: fix status check for running entry"
The following discussion from !3691 (merged) should be addressed:
-
@nicolasfella started a discussion: (+1 comment) What I'd like to see is in the C++ code having an enum like
enum State { Active, Inactive, Activating, Deactivating, Failed, };
and mapping the strings we get from systemd to those. Then we expose this enum to QML where we then can compare enum values instead of strings (which is always a bit brittle).
But the patch as-is works and could go in