- Supporting flatpak 1.X, 1.2X and 1.4.X
- Tray icon
- System notifications when new updates are available
- Applications management window
This commit is contained in:
Vinícius Moreira
2019-06-14 16:50:29 -03:00
committed by GitHub
parent fe8ac9e3a7
commit 8a95d508c8
33 changed files with 2007 additions and 668 deletions

6
fpakman/core/system.py Normal file
View File

@@ -0,0 +1,6 @@
import subprocess
def run_cmd(cmd: str, expected_code: int = 0, ignore_return_code: bool = False) -> str:
res = subprocess.run(cmd, shell=True, stdout=subprocess.PIPE)
return res.stdout.decode() if ignore_return_code or res.returncode == expected_code else None