This commit is contained in:
2026-09-08 16:41:04 +02:00
parent db4ed2ef31
commit bf05272797
14 changed files with 725 additions and 75 deletions
+8
View File
@@ -1,6 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
# Applications opened from a file manager do not inherit variables exported by
# an interactive shell (for example GEMINI_API_KEY from ~/.zshrc). Re-enter
# through the user's shell once so its startup file can provide those values.
if [[ -z "${GEMINI_API_KEY:-}" && -z "${COPIENATOR_GUI_SHELL_LOADED:-}" && -x "${SHELL:-}" ]]; then
export COPIENATOR_GUI_SHELL_LOADED=1
exec "$SHELL" -ic 'exec "$@"' copienator-gui-shell "$0" "$@"
fi
# With no arguments, choose the newest visible immediate subfolder by mtime.
if [[ $# -eq 0 ]]; then
newest=""