This commit is contained in:
Vinicius Moreira
2019-07-01 11:07:50 -03:00
parent da00eacd1f
commit 7ac23ef7df
16 changed files with 977 additions and 102 deletions

View File

@@ -14,6 +14,6 @@ def stream_cmd(cmd: List[str]):
return subprocess.Popen(cmd, stdout=subprocess.PIPE, env={'LANG': 'en'}).stdout
def notify_user(msg: str, icon_path: str = resource.get_path('img/flathub_45.svg')):
def notify_user(msg: str, icon_path: str = resource.get_path('img/logo.svg')):
if bool(os.getenv('FPAKMAN_UPDATE_NOTIFICATION', 1)):
os.system("notify-send {} '{}'".format("-i {}".format(icon_path) if icon_path else '', msg))