diff --git a/hiprompt_gtk/window.py b/hiprompt_gtk/window.py index 840dbcc..537a09a 100644 --- a/hiprompt_gtk/window.py +++ b/hiprompt_gtk/window.py @@ -1,5 +1,6 @@ import gi -from gi.repository import Gtk, Gio, Gdk, GLib +gi.require_version('Notify', '0.7') +from gi.repository import Gtk, Gio, Gdk, GLib, Notify from hiprompt_gtk.proto import PromptMode @@ -16,6 +17,7 @@ class Window: self.provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) + Notify.init("hiprompt") self.window = Gtk.Window() self.header = Gtk.HeaderBar() self.window.set_titlebar(self.header) @@ -36,7 +38,8 @@ class Window: def make_ui(self): if self.session.mode == PromptMode.disclose: - self.make_disclose_ui() + Notify.Notification.new("himitsu secret accessed", '\n'.join(map(str, self.session.keys))).show() + exit(0) elif self.session.mode == PromptMode.delete: self.make_delete_ui() elif self.session.mode is None: