I think it happens because gir1.2-secret-1 is not installed on the
system.
There is code in jobviewer.py to handle this case:
56 try:
57 gi.require_version('Secret', '1')
58 from gi.repository import Secret
59 USE_SECRET=True
60 except ValueError:
61 USE_SECRET=False
But there are several locations in the code where the value of USE_SECRET is
not checked before using Secret. For example:
76 NETWORK_PASSWORD = Secret.Schema.new("org.system.config.printer.store",
Secret.SchemaFlags.NONE,
But also
90 class ServiceGet:
91 service = Secret.Service()
92
93 def on_get_service(self, source, result, unused):
94 service = Secret.Service.get_finish(result)
95
96 def __init__(self):
97 Secret.Service.get(0,
109 def on_search_item(self, source, result, unused):
110 items = Secret.Service.search_finish(None, result)
111
112 def __init__(self, service, attrs):
113 Secret.Service.search(service,
...
** Changed in: system-config-printer (Ubuntu)
Status: Confirmed => Triaged
** Changed in: system-config-printer (Ubuntu)
Importance: Undecided => High
** Tags added: rls-bb-incoming
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1760027
Title:
system-config-printer.py crashed with NameError in /usr/share/system-
config-printer/jobviewer.py: name 'Secret' is not defined
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1760027/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs