Hello,
In my Updater tool, I try to launch an action within Terminal.
I tried something likely done in the 'Open Shell Here' service.
A new shell opens as expected, but the action is not performed. I
guess I am not using the right syntax to do that.
Below, the concerned part of the bash script that calls Terminal:
pgrep Terminal
if [ $? -eq 1 ];then
/System/Tools/openapp Terminal
fi
cd "$HOME" && exec $SHELL -c "Updater
--upgrade"
What would be the rignt way? I tried also to create an
'Updater.service' in Terminal, but I do not know how to call it from
my script.
P.S.: To understand the context: the first 'Updater --update' script
is called from ~/GNUStep/Library/WindowMaker/autostart.
It shows up a notification (threw dunst) from witch the user (threw
dmenu) can choose to apply immediately the upgrade. In this case, the
above part of the script is executed.
Regards,
Patrick
--
Patrick Cardona - Pi400 - GNU/Linux aarch64 (Debian 13.1)
Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64)
Window Maker (0.96.0) - GWorkspace (1.1.0 - 02 2025) - Theme: AGNOSTEP
- MUA: GNUMail (1.4.0)