I'm trying to launch a bash with a double click on it.
I made a simple script :
#!/usr/bin/env bash
echo Hello, who am I talking to?
read varname
echo "It's nice to meet you" $varname
and I also tried by putting #!/bin/bash but didn't change
I did
sudo chmod +x script_name
dconf-editor
and set launch file on click in dconf-editor
.
I also tried to add .sh extention to the file without success.
With all of this, the file is not running when i double click on it.
I'm using ubuntu 20.04, and I didn't find any helpfull post about this problem.
Maybe I didn't searched well or enough so feel free to send me
Additionnal intels :
- The script work well when I launch it from terminal,
- When I set "ask" in dconf-editor is ask me how I want to open it, but launch still don't work.
- Using the "ask" option, and then click on "run in terminal" make it work. But I want it to work without the ask window, to make it more user friendly.
- The post Bash script using `sudo` runs correctly from cli but not when clicked to run is not helping me since I don't have sudo commands inside my script.
expected behaviour:
A terminal is open saying "who am I talking about?"
Thanks a lot. And sry about my english level I'm not native.
Bouq