Bug#418274: please include desktop-open(1) command

Robert Millan rmh at aybabtu.com
Sun Apr 8 18:21:20 UTC 2007


Package: libgnome2-0
Version: 2.16.0-2
Severity: wishlist
Tags: patch

Please, could you include a neutral desktop-open(1) command as an alias for
gnome-open, via /etc/alternatives ?  The idea is that KDE, etc can provide
their own, and so applications can ressort to using this instead of gnome-open
in order to support all desktops in one shot.

Patch attached.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)

Versions of packages libgnome2-0 depends on:
ii  libaudiofile0               0.2.6-6      Open-source version of SGI's audio
ii  libbonobo2-0                2.14.0-3     Bonobo CORBA interfaces library
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libesd0                     0.2.36-3     Enlightened Sound Daemon - Shared 
ii  libgconf2-4                 2.16.1-1     GNOME configuration database syste
ii  libglib2.0-0                2.12.4-2     The GLib library of C routines
ii  libgnome2-common            2.16.0-2     The GNOME 2 library - common files
ii  libgnomevfs2-0              1:2.14.2-7   GNOME virtual file-system (runtime
ii  liborbit2                   1:2.14.3-0.1 libraries for ORBit2 - a CORBA ORB
ii  libpopt0                    1.10-3       lib for parsing cmdline parameters

libgnome2-0 recommends no packages.

-- no debconf information
-------------- next part --------------
diff -Nur libgnome-2.16.0.old/debian/postinst libgnome-2.16.0/debian/postinst
--- libgnome-2.16.0.old/debian/postinst	1970-01-01 01:00:00.000000000 +0100
+++ libgnome-2.16.0/debian/postinst	2007-04-08 20:10:13.000000000 +0200
@@ -0,0 +1,7 @@
+#!/bin/bash -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+    update-alternatives --install /usr/bin/desktop-open desktop-open /usr/bin/gnome-open 40
+fi
+
+#DEBHELPER#
diff -Nur libgnome-2.16.0.old/debian/prerm libgnome-2.16.0/debian/prerm
--- libgnome-2.16.0.old/debian/prerm	1970-01-01 01:00:00.000000000 +0100
+++ libgnome-2.16.0/debian/prerm	2007-04-08 20:10:34.000000000 +0200
@@ -0,0 +1,7 @@
+#!/bin/bash -e
+
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove desktop-open /usr/bin/gnome-open
+fi
+
+#DEBHELPER#


More information about the pkg-gnome-maintainers mailing list