[Pkg-ROX-devel] Bug#289314: rox-filer: undebianised defaults
Justin B Rye
Justin B Rye <jbr@edlug.org.uk>, 289314@bugs.debian.org
Sat, 8 Jan 2005 14:13:18 +0000
Package: rox-filer
Version: 2.0.1-3
Severity: normal
Tags: patch
Patches for the text and text_html scripts, so that they make better
use of the available Debian mechanisms for providing good defaults:
--- /usr/share/rox-filer/Choices/MIME-types/text 2004-09-23 13:56:27.000000000 +0100
+++ /usr/share/rox-filer/Choices/MIME-types/text.1 2005-01-02 12:45:01.000000000 +0000
@@ -1,2 +1,2 @@
#!/bin/sh
-exec xterm -e vi "$@"
+exec x-terminal-emulator -e sensible-editor "$@"
(Fortunately its attempts to maroon me in my least favourite coding
utility are foiled by the fact I don't have vi installed, though as
it happens I do use xterm rather than, say, rxvt. Meanwhile, the
text_html script is reinventing a different wheel:)
--- /usr/share/rox-filer/Choices/MIME-types/text_html 2004-09-23 13:56:27.000000000 +0100
+++ /usr/share/rox-filer/Choices/MIME-types/text_html.1 2005-01-02 12:46:08.000000000 +0000
@@ -1,13 +1,2 @@
#!/bin/sh
-
-for app in galeon mozilla netscape skipstone dillo konqueror amaya; do
- if [ -x "`which $app`" ]; then exec "$app" "$@"; fi
-done
-
-for app in w3m lynx links vim vi; do
- if [ -x "`which $app`" ]; then exec xterm -e "$app" "$@"; fi
-done
-
-echo "Can't find any web browser installed... last try..." >&2
-
-exec netscape "$@"
+exec x-www-browser "$@"
(But /usr/share/rox-filer/Choices/MIME-types/application_postscript
is harder to improve on.)
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.6.9
Locale: LANG=en_GB, LC_CTYPE=en_GB
Versions of packages rox-filer depends on:
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libglib2.0-0 2.4.8-1 The GLib library of C routines
ii libgtk2.0-0 2.4.14-2 The GTK+ graphical user interface
ii libice6 4.3.0.dfsg.1-10 Inter-Client Exchange library
ii libpango1.0-0 1.6.0-3 Layout and rendering of internatio
ii libsm6 4.3.0.dfsg.1-10 X Window System Session Management
ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii libxml2 2.6.11-5 GNOME XML library
ii shared-mime-info 0.15-1 FreeDesktop.org shared MIME databa
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-3 compression library - runtime
-- no debconf information
--
JBR
Ankh kak! (Ancient Egyptian blessing)