From bfa60a4531b93dee59b9e8b0984b4a32660d5316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sat, 4 Apr 2026 17:49:56 +0200 Subject: [PATCH] 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. --- usr/lib/hypnotix/hypnotix.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/usr/lib/hypnotix/hypnotix.py b/usr/lib/hypnotix/hypnotix.py index a6be99f..745a885 100755 --- a/usr/lib/hypnotix/hypnotix.py +++ b/usr/lib/hypnotix/hypnotix.py @@ -1423,17 +1423,7 @@ def open_about(self, widget): dlg.set_title(_("About")) dlg.set_program_name(_("Hypnotix")) dlg.set_comments(_("Watch TV")) - try: - h = open("/usr/share/common-licenses/GPL", encoding="utf-8") - s = h.readlines() - gpl = "" - for line in s: - gpl += line - h.close() - dlg.set_license(gpl) - except Exception as e: - print(e) - + dlg.set_license_type(Gtk.License.GPL_3_0) dlg.set_version("__DEB_VERSION__") dlg.set_icon_name("hypnotix") dlg.set_logo_icon_name("hypnotix")