feat: set process title if setproctitle available

This commit is contained in:
Cyril Levis
2022-02-04 15:37:04 +01:00
parent dd485faf9e
commit 87bfa8552a

View File

@@ -5,7 +5,11 @@ import subprocess
import os.path import os.path
import configparser import configparser
try:
import setproctitle
setproctitle.setproctitle("gotify-dunst")
except:
pass
home = os.path.expanduser('~') home = os.path.expanduser('~')
configpath = home+'/.config/gotify-dunst/gotify-dunst.conf' configpath = home+'/.config/gotify-dunst/gotify-dunst.conf'