Revision | ed20435e765fe8bb3ae68dbe4592727aa9e0e410 (tree) |
---|---|
Zeit | 2020-01-20 20:00:07 |
Autor | Frede Hundewadt <fh@uex....> |
Commiter | Frede Hundewadt |
editor variable
@@ -35,6 +35,9 @@ TRANS_SRC="/pbif-master" # Dir where translation files are stored | ||
35 | 35 | # Other variables for installer # |
36 | 36 | # # |
37 | 37 | |
38 | +# Editor for modifying configs | |
39 | +TEXTEDITOR="xed" | |
40 | + | |
38 | 41 | # Create a temporary file to store menu selections |
39 | 42 | ANSWER="/tmp/.abif" |
40 | 43 |
@@ -1941,7 +1944,7 @@ edit_configs() { | ||
1941 | 1944 | ;; |
1942 | 1945 | esac |
1943 | 1946 | |
1944 | - [[ $FILE != "" ]] && xed -i $FILE \ | |
1947 | + [[ $FILE != "" ]] && ${TEXTEDITOR} -i $FILE \ | |
1945 | 1948 | || dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --title " $_ErrTitle " --msgbox "$_SeeConfErrBody" 0 0 |
1946 | 1949 | |
1947 | 1950 | edit_configs |