From bd20bd3058ef695d33bae0213ac0bc265dcb3fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuz=20Ka=C4=9Fan=20EREN?= Date: Sun, 4 Jul 2021 07:53:34 +0000 Subject: [PATCH] #27 fixed default browser problem --- src/manjaro_hello.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 8968932..3ebf3f5 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -14,7 +14,7 @@ import sys import webbrowser gi.require_version("Gtk", "3.0") -from gi.repository import Gtk, GdkPixbuf +from gi.repository import Gtk, GdkPixbuf, Gdk class EmbedManager: @@ -334,7 +334,7 @@ class Hello(Gtk.Window): def on_link_clicked(self, link, _=None): """Event for clicked link.""" - webbrowser.open_new_tab(self.preferences["urls"][link.get_name()]) + Gtk.show_uri_on_window(None, self.preferences["urls"][link.get_name()], Gdk.CURRENT_TIME) def on_delete_window(self, *args): """Event to quit app."""