From 8ebc2b30d42353783fd311089f4cfa80d7b2749b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sat, 4 Apr 2026 04:02:14 +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/sticky/sticky.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/usr/lib/sticky/sticky.py b/usr/lib/sticky/sticky.py index d47e2fe..bd89ff5 100755 --- a/usr/lib/sticky/sticky.py +++ b/usr/lib/sticky/sticky.py @@ -1217,17 +1217,7 @@ def open_about(self, widget): dlg.set_title(_("About")) dlg.set_program_name(_("Notes")) dlg.set_comments(_("Take notes and stay organized")) - 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_2_0) dlg.set_version("__DEB_VERSION__") dlg.set_icon_name("sticky") dlg.set_logo_icon_name("sticky")