🔧 chore(update): restart colorshell if there's an instance running after updating

This commit is contained in:
retrozinndev
2025-10-26 16:26:44 -03:00
parent 1bd457bd83
commit 23cacbbe89
3 changed files with 26 additions and 12 deletions
+15
View File
@@ -63,6 +63,21 @@ function Ask() {
export answer
}
# -------------
# Checks if there's currently a colorshell instance running
# Returns code 0 if none, 1 if there is one
# -------------
function Is_running() {
if gdbus introspect --session \
--dest io.github.retrozinndev.colorshell \
--object-path /io/github/retrozinndev/colorshell > /dev/null 2>&1
then
return 0
fi
return 1
}
# -------------
# Check if colorshell is installed
# Returns code 0 if installed, 1 if not