pino
Useless X11 Python notification daemon
git clone https://git.pi66.xyz/pino
About | Files | Commits | Refs | License
enhanced UX and error messages
Author: pixel2175
Date: 2024-12-21 14:22
commit: df400be1
Stat
| M | uninstall.py | 5 | +3 | -2 |
Diff
diff --git a/uninstall.py b/uninstall.py
index 068ed95..14d88e1 100644
--- a/uninstall.py
+++ b/uninstall.py
@@ -1,5 +1,6 @@
import os
+
def get_distro():
if os.path.isfile("/etc/os-release"):
with open("/etc/os-release") as f:
@@ -50,8 +51,8 @@ def remove_files():
"sudo rm -r /usr/bin/pino /usr/bin/pino_start /etc/pino/ > /dev/null 2>&1"
)
os.system("rm -r ~/.config/pino/ ~/.config/pino/plugs/ > /dev/null 2>&1")
- print("App Remove: Done")
- except:
+ print("Remove App: Done")
+ except OSError:
print("Faild remove")
...
Show all
Show less
diff --git a/uninstall.py b/uninstall.py
index 068ed95..14d88e1 100644
--- a/uninstall.py
+++ b/uninstall.py
@@ -1,5 +1,6 @@
import os
+
def get_distro():
if os.path.isfile("/etc/os-release"):
with open("/etc/os-release") as f:
@@ -50,8 +51,8 @@ def remove_files():
"sudo rm -r /usr/bin/pino /usr/bin/pino_start /etc/pino/ > /dev/null 2>&1"
)
os.system("rm -r ~/.config/pino/ ~/.config/pino/plugs/ > /dev/null 2>&1")
- print("App Remove: Done")
- except:
+ print("Remove App: Done")
+ except OSError:
print("Faild remove")
...
diff --git a/uninstall.py b/uninstall.py
index 068ed95..14d88e1 100644
--- a/uninstall.py
+++ b/uninstall.py
@@ -1,5 +1,6 @@
import os
+
def get_distro():
if os.path.isfile("/etc/os-release"):
with open("/etc/os-release") as f:
@@ -50,8 +51,8 @@ def remove_files():
"sudo rm -r /usr/bin/pino /usr/bin/pino_start /etc/pino/ > /dev/null 2>&1"
)
os.system("rm -r ~/.config/pino/ ~/.config/pino/plugs/ > /dev/null 2>&1")
- print("App Remove: Done")
- except:
+ print("Remove App: Done")
+ except OSError:
print("Faild remove")