improve notification

This commit is contained in:
piotr 2022-04-27 03:43:59 +02:00
parent 8507e422f2
commit 0fc90c4cf3

View File

@ -63,9 +63,8 @@ def main():
if last_upgrade < ver and __version__ in need_upgrade:
time.sleep(5)
subprocess.Popen(
'exec {}'.format("notify-send -i /usr/share/pixmaps/nwg-shell.svg 'Upgrade to nwg-shell v{} "
"available' 'Run \"nwg-shell-installer -u\" in terminal.'".format(__version__)),
shell=True)
'exec {}'.format("notify-send -i /usr/share/pixmaps/nwg-shell.svg 'nwg-shell v{} available' "
"'Run \"nwg-shell-installer -u\" in terminal.'".format(__version__)), shell=True)
print("Upgrade to {} needed. Run 'nwg-shell-installer -u'.".format(__version__))
else:
print("No upgrade needed.")