Score:0

Double clicking on bash script gives me an error but running it from terminal works fine?

ng flag

The script simply contains torsocks ./monero-wallet-cli --daemon-address blablabla.onion:18081 which gives me execvp: Exec format error. After realizing that I am in fact stupid I added #!/bin/sh to the start which got rid of the error, but upon double clicking nothing still happened. Mind you, the script works perfectly when being run from the terminal, as in ./filename.sh. It's marked as an executable. Is my system broken? I'm using Ubuntu Impish 21.10 and haven't changed any major settings. Just installed programs for coding and what-not, so it's a pretty clean & new install.

pasman pasmański avatar
mx flag
Double clicking on script opens it in editor. To run it , right click on it and select `Run as a program`
Frappy avatar
ng flag
@pasmanpasmański It doesn't though, nothing open when I double click on it.
hu flag
This is the expected behavior. Scripts are run, not double clicked. Not sure what you've expected.
Score:0
ng flag

The ability to run scripts by double clicking on them is deprecated. I remember doing this which is why I was so confused about it not working anymore. I guess I was wrong.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.