File: xpaint_ocr-sensible-editor.diff

package info (click to toggle)
xpaint 2.9.1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,552 kB
  • sloc: ansic: 73,017; sh: 492; yacc: 247; lex: 126; sed: 43; makefile: 11
file content (30 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Use sensible-editor instead of emacs

Forwarded: not-needed
Author: Josue Abarca <jmaslibre@debian.org.gt>
Last-Update: 2010-01-27

--- a/share/bin/xpaint_ocr
+++ b/share/bin/xpaint_ocr
@@ -18,19 +18,8 @@
 # adapt to whatever X pager or X editor is available
 # we strongly recommend good old 'xless' ...
 #
-if test `which xless` != ""
-then
-  if test `ps aux | grep -e [x]less | grep -c "xpaint_ocr_output.txt"` = "0"
-  then
-    xless -fn 10x20 -f $HOME/xpaint_ocr_output.txt &
-  fi
-elif test `which emacs` != ""
-then
-   emacs -fn 10x20 -f $HOME/xpaint_ocr_output.txt &
-elif test `which xterm` != ""
-then
-   xterm -e less $HOME/xpaint_ocr_output.txt &
-fi
+
+x-terminal-emulator -e sensible-editor xpaint_ocr_output.txt &
 
 rm -f $HOME/xpaint_output.ppm