blob: 4dfceb3db841d9563247340967fab045c9ee25af [file] [log] [blame]
Ian Zernydcb172e2022-02-22 15:36:45 +01001#!/usr/bin/env python3
Stephan Herhutd24b1b72017-08-24 15:09:36 +02002# Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
3# for details. All rights reserved. Use of this source code is governed by a
4# BSD-style license that can be found in the LICENSE file.
5
6try:
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +02007 import gi
8 gi.require_version('Notify', '0.7')
9 from gi.repository import Notify
10 Notify.init('R8 build tools')
Stephan Herhutd24b1b72017-08-24 15:09:36 +020011
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020012 def notify(message):
13 try:
14 Notify.Notification.new('R8 build tools', message).show()
15 except:
16 return
Stephan Herhutd24b1b72017-08-24 15:09:36 +020017
Rico Wind49811682018-10-25 09:24:46 +020018except (ImportError, ValueError):
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020019
20 def notify(message):
21 return