Always when I want to execute my script, I need to confirm that I want to run it in terminal. Is there a way to easily skip that, or set this as default?
I am using Nemo file manager (Mint)
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Instead of putting your executable scripts on the Desktop, create a separate directory for them. Traditionally this has been
$HOME/bin but I understand it's now something like
$HOME/.local/bin. Either way, you can also add this directory to your
~/.bash_profile or other startup file.
As an example, consider an executable script,
Now, instead of having your executable on the Desktop, you create a launcher. You can do this either graphically by right-clicking on the Desktop and following the prompts to run
$HOME/bin/thing in a Terminal or you can create the file manually:
cat <<'X' >"$HOME/Desktop/Thing.desktop" [Desktop Entry] Comment= Terminal=true Name=Thing Exec=bin/thing Type=Application X
(You could substitute
Exec=.local/bin/thing if appropriate.)