mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
parent
268bd9125e
commit
8b8f2d1d8a
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
# Copyright (c) 2020,2022 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
A simple wrapper to show desktop notifications while running nvchecker.
|
A simple wrapper to show desktop notifications while running nvchecker.
|
||||||
|
@ -11,7 +11,10 @@ import subprocess
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('Notify', '0.7')
|
try:
|
||||||
|
gi.require_version('Notify', '0.8')
|
||||||
|
except ValueError:
|
||||||
|
gi.require_version('Notify', '0.7')
|
||||||
from gi.repository import Notify
|
from gi.repository import Notify
|
||||||
|
|
||||||
def get_args():
|
def get_args():
|
||||||
|
|
Loading…
Add table
Reference in a new issue