canonical / desktop-security-center

GNU General Public License v3.0
12 stars 4 forks source link

fix: do not error if Is*Service is called while unattached. #31

Closed nteodosio closed 6 months ago

nteodosio commented 6 months ago

The front-end may call Is{Service}Enabled even if the machine is detached and this shouldn't cause an error. So make isServiceEnabled first check whether Ubuntu Pro is attached before actually trying to call the respective Dbus object.