LEW21 / pydbus

Pythonic DBus library
GNU Lesser General Public License v2.1
326 stars 76 forks source link

Allow to pass asking for interactive authorization #94

Open papoteur-mga opened 3 years ago

papoteur-mga commented 3 years ago

Problem When using systemd1 on DBus, for asking change of service like EnableUnitFiles, we should ask that the request allow interactive authorization. Then the root password is asked through a dialog. This commit allow to place "interactive=True" in parameters to the function, in which case the flag ALLOW_INTERACTIVE_AUTHORIZATION is set.