Выполнить файл bash, дважды щелкнув по

] Вместо шагов в https://www.xp-pen.com/faq-56- 210.html , я хочу иметь возможность дважды щелкнуть файл bash и запустить программное обеспечение.

Я выполнил действия, описанные в https://www.youtube.com/watch?v=daadsaHhXB8 . Все еще не успешно. Я смог запустить его через cmd, используя ./ script.sh . Но я хочу иметь возможность дважды щелкнуть и запустить.

Я был бы очень признателен, если бы кто-нибудь мог мне помочь с этим. Моя ОС - Ubuntu 20.04 Focal Fossa.

Спасибо!

-1
задан 24 July 2020 в 06:11

2 ответа

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.

0
ответ дан 30 July 2020 в 22:03

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.

0
ответ дан 30 July 2020 в 22:03

Другие вопросы по тегам:

Похожие вопросы: