#!/usr/bin/env python3

from os import path

import gi
gi.require_version('Gtk', '3.0')
gi.require_version('Notify', '0.7')
from gi.repository import GLib, Gtk, Notify

WD = path.dirname(path.realpath(__file__))  # Manage to run script anywhere in the path
ICON = path.join(WD, 'reproducer.ico')


class Application:
    def __init__(self):
        self.status_icon = Gtk.StatusIcon(file=ICON, visible=True)
        self.status_icon.connect('activate', Gtk.main_quit, None)


if __name__ == '__main__':
    Notify.init('reproducer')
    notification = Notify.Notification.new('Test', icon=ICON)
    notification.show()
    app = Application()
    Gtk.main()
