application startup on terminal/shell

Ralf Mardorf kde.lists at yahoo.com
Mon Oct 18 17:25:44 UTC 2021


On Mon, 18 Oct 2021 13:01:50 -0400, Little Girl wrote:
>you can edit the shortcut and add a command that
>launches neofetch before the command that launches the terminal,
>putting && between them to make sure that the terminal will
>only be launched if neofetch has already been launched.

Hi,

I suspect the terminal needs to run first.

Running

terminal && neofetch

might run neofetch after the terminal is closed, not while it's running.

However, my script example

#!/bin/bash

terminal-name.real "$@" & neofetch

exit

might start neofetch, before the terminal is ready. So it should be
something similar to

#!/bin/bash

terminal-name.real "$@" & sleep 2; neofetch

exit

Regards,
Ralf




More information about the ubuntu-users mailing list