Fix: Add explicit GI_TYPELIB_PATH for AstalNotifd typelib resolution
This commit is contained in:
+11
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user