Skip to content

Commit 8443e2c

Browse files
authored
Set license type on about dialog
This ensures that the proper license is displayed on the about dialog even if the license file is missing from the system.
1 parent c35fdd9 commit 8443e2c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

usr/lib/webapp-manager/webapp-manager.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,7 @@ def open_about(self, widget):
238238
dlg.set_title(_("About"))
239239
dlg.set_program_name(_("Web Apps"))
240240
dlg.set_comments(_("Run websites as if they were apps"))
241-
try:
242-
with open('/usr/share/common-licenses/GPL', encoding="utf-8") as h:
243-
gpl = h.read()
244-
dlg.set_license(gpl)
245-
except Exception as e:
246-
print(e)
247-
241+
dlg.set_license_type(Gtk.License.GPL_3_0)
248242
dlg.set_version("__DEB_VERSION__")
249243
dlg.set_icon_name("webapp-manager")
250244
dlg.set_logo_icon_name("webapp-manager")

0 commit comments

Comments
 (0)