Pacsea v0.4.2 — Terminal invocation reliability
Date: 2025-10-23
Highlights
- Fix: System Update/Install on XFCE now runs correctly. We changed the launch
forxfce4-terminalto use--command "bash -lc '<cmd>'", avoiding the
previous parsing issue where-lcwas treated as a terminal option and the
window opened to an idle prompt. - Reliability: Terminal selection prefers PATH order. When multiple terminals
are installed, Pacsea now picks the first one that appears on PATH, which is
more predictable and honors user shell configuration.
Details
xfce4-terminalinvocation- Old:
-e bash -lc <cmd>(could fail with “Unknown option: -lc”). - New:
--command "bash -lc '<cmd>'"with robust single-quote escaping.
- Old:
- Other terminals remain unchanged:
gnome-terminal:-- bash -lc <cmd>kitty:bash -lc <cmd>xterm:-hold -e bash -lc <cmd>konsole:-e bash -lc <cmd>tilix/mate-terminal: keep-- bash -lc <cmd>as before.
- Internal improvements:
- Added a safe single-quote escaping helper for shell commands.
- Ensure output file parent directories exist in tests to avoid sporadic
"No such file or directory" errors when capturing argv.
Packaging
- Arch PKGBUILD: tests are now run single-threaded
(cargo test ... -- --test-threads=1) to avoid PATH/env races in
environment-mutating tests.
Upgrade notes
- No config changes required. If
xfce4-terminalstill opens to an idle
prompt, check terminal Preferences → General and ensure a user-defined
"Run a custom command" is not overriding Pacsea’s command. Disabling that
option resolves most local overrides.
Thanks
- Thanks to user @MS-Jahan who reported and helped validate the
xfce4-terminalbehavior.