0

Actually i want to create a script for autorun it on startup, so first i test how to create the script file to execute, and found it can be done and created the demo.sh file below and changed the permission to be executable.

#!/bin/bash
echo hi

i can execute it in the terminal by

bash demo.sh

and it can print the hi in the terminal.

But when i try to execute it by clicking the demo.sh at desktop, the result like the picture. double click white screen

and it is the same when i try below code, it popup the shell window but show white screen only.

qterminal -e echo hi

How can i able to just click the script and execute it, and autorun it when the computer startup, it only have 1 account and will auto login.

mrj1942
  • 1
  • 1
  • 2
    Does this answer your question? [How Can I Run an Shell Script With .desktop Config File?](https://askubuntu.com/questions/543046/how-can-i-run-an-shell-script-with-desktop-config-file) This question has been asked many times – kanehekili Aug 06 '22 at 18:17

0 Answers0