Fix: Add explicit GI_TYPELIB_PATH for AstalNotifd typelib resolution

This commit is contained in:
2025-12-03 18:12:32 -04:00
parent fa9367c43a
commit 186f6ddc82
4 changed files with 299 additions and 20 deletions
+11 -2
View File
@@ -5,10 +5,19 @@ file="${1:-./build/colorshell}"
function start() {
if Is_running; then
echo "[info] killing previous instance"
colorshell quit || killall gjs
colorshell quit || killall gjs 2>/dev/null || true
fi
echo "[info] starting"
exec "$file"
# Always run through nix develop to ensure proper environment variables are set
# This is needed because the manually built executable doesn't have wrapGAppsHook
if command -v nix > /dev/null 2>&1; then
# Use nix develop -c to run with proper environment
# The -c flag runs the command in the devshell environment
exec nix develop -c bash -c "exec \"$file\" \"\$@\"" -- "$@"
else
exec "$file" "$@"
fi
}
if [[ -f $file ]]; then