TransWikia.com

Execute a bash file by double clicking

Ask Ubuntu Asked by boniface316 on December 23, 2021

Instead of following the steps at https://www.xp-pen.com/faq-56-210.html, I want to be able to double click the bash file and run the software.

I followed the steps in https://www.youtube.com/watch?v=daadsaHhXB8. Still not successful. I was able to run it via cmd using ./script.sh. But I want to be able to double click and run.

I would really appreciate if anyone can help me with this. My OS is Ubuntu 20.04 Focal Fossa.

Thanks!

2 Answers

Follow these steps:

  • Hit Alt+F2, type dconf-editor and hit ``Enter.

  • In dconfg-editor goto: org ➤ gnome ➤ nautilus ➤ preferences

  • Click on executable-text-activation and from drop down menu select:

launch: to launch scripts as programs.

OR

ask: to ask what to do via a dialog.

Close dconf-editor Thats it!

Source : exact copy of this answer from stack overflow.

Answered by Abhay Patil on December 23, 2021

This will depend on the file manager used so your best be is to search for a way to achieve that through your file manager settings rather than at OS level .

Let us know which file manger you're using, then I can add more information to directly answer your questions.

Answered by MichaelHabib on December 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP