Closed demmm closed 10 years ago
Thanks for reporting. This issue relates to the design of systemd. The units shown in the list are the ones that are loaded into memory by systemd (equivalent to what is shown by the command: systemctl --all). There are other unit files, which are not loaded into memory (the complete list is shown by: systemctl list-unit-files). Non-active display manager services (kdm.service and lightdm.service) are examples of units that are not loaded in memory.
I have been wondering how to implement this in kcmsystemd. I think the best solution would be to have a function (activated by e.g. a button) to retrieve the complete list of unit files, filtering out the units who are already loaded in memory and present those units in a popup-dialog with the possibility to enable them. What do you think?
I understood it was an issue with how systemd handles not loaded units :). Just wanted to see what is possible to try and make it work. your suggestion might be good, if implemented, I'll build it right away and report back.
I implemented the ability to view/control unloaded units. I chose to integrate those units in the main units list. There is a check-box "View unloaded" that enables this. Can you build the latest git and test the new function?
Sorry, missed your last comment, just build from git, seems to all work correct, just the asking for root password seems to only be one time, but I'll do some more tests. Thanks for all your work so far.
Yes, "auth_admin_keep" is used for the polkit actions, so the authentication is kept for a brief period. This way, you don't need to authenticate each time when doing several root actions. This can easily be changed however, by editing the action file.
Fixed in 0.5.0.
Found this issue first in kcmsystem 0.3.0, still present with 0.4.0 just build. If for example you use sddm as login manager, and have that one enabled, disabling works fine, but (installed) kdm.service is not listed, so you can not switch to enable kdm.service.