diff options
author | Yigit Sever | 2020-07-06 12:47:10 +0300 |
---|---|---|
committer | Yigit Sever | 2020-07-06 12:47:10 +0300 |
commit | e269126e602c47693902c63650116e78e1286c35 (patch) | |
tree | 84c330874678e42c7cd4e9398988df773746b7b2 | |
parent | e8bc09efb987ee062ec3159c6b668b886c9aed9e (diff) | |
download | dotfiles-e269126e602c47693902c63650116e78e1286c35.tar.gz dotfiles-e269126e602c47693902c63650116e78e1286c35.tar.bz2 dotfiles-e269126e602c47693902c63650116e78e1286c35.zip |
nuke can open libreoffice
-rwxr-xr-x | bin/nuke | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -204,6 +204,9 @@ handle_extension() { | |||
204 | ## Preview as text conversion | 204 | ## Preview as text conversion |
205 | odt2txt "${FPATH}" | eval "$PAGER" | 205 | odt2txt "${FPATH}" | eval "$PAGER" |
206 | exit 0 | 206 | exit 0 |
207 | elif [ "$GUI" -ne 0 ] && which libreoffice >/dev/null 2>&1; then | ||
208 | libreoffice "${FPATH}" & | ||
209 | exit 0 | ||
207 | fi | 210 | fi |
208 | exit 1;; | 211 | exit 1;; |
209 | 212 | ||