1. 程式人生 > >Ubuntu16.04 下雙擊執行可執行指令碼檔案

Ubuntu16.04 下雙擊執行可執行指令碼檔案

1、安裝 dconf-editor

sudo apt-get install dconf-editor

2、安裝完成後直接輸入dconf-editor開啟dconf-editor

dconf-editor

3、org->gnome->natuilus->preferences->executable-text-activation

關閉使用預設值   自定義值改為ask  

4、對指令碼加上可執行許可權,雙擊後會出現詢問視窗