Why doesn't this script run from desktop shortcut

I have a script that runs fine from terminal, but gets error when run from desktop shortcut. I am providing three screen shots. Thanks.
Screenshot at 2020-10-28 11-20-40

UPDATE: I found the error in the launch agent. I changed the lxterminal to mate-terminal

Looks like your desktop shortcut is trying to run the file from a different directory than is shown in the bottom screenshot:
Desktop shortcut: /usr/bin/argonone-config
Actual file location: /bin/argonone-config

Try changing your shortcut to match the path if the actual file location as indicated above.

Actually I found the error: I had to change the terminal in the front from lxterminal to mate-terminal

1 Like