Control: tags -1 patch

On 2014-12-22, Matt Kraai wrote:
> mate-terminal already contains a mate-terminal.wrapper program that
> provides the options required for x-terminal-emulator, but
> update-alternatives is called with mate-terminal instead of
> mate-terminal.wrapper.
>
> I think it's just necessary to use update-alternatives in the
> maintainer scripts to remove the mate-terminal alternative and add a
> mate-terminal.wrapper one, but I'm not sure how to do so.

I haven't tested, but the following patch should work:

diff --git a/debian/mate-terminal.postinst b/debian/mate-terminal.postinst
index 278bc4c..0fdb949 100755
--- a/debian/mate-terminal.postinst
+++ b/debian/mate-terminal.postinst
@@ -6,6 +6,6 @@ set -e
 
 if [ "$1" = "configure" ]; then
        update-alternatives --install /usr/bin/x-terminal-emulator \
-               x-terminal-emulator /usr/bin/mate-terminal 30
+               x-terminal-emulator /usr/bin/mate-terminal.wrapper 30
 fi
 
diff --git a/debian/mate-terminal.prerm b/debian/mate-terminal.prerm
index 2145b42..57f6df2 100755
--- a/debian/mate-terminal.prerm
+++ b/debian/mate-terminal.prerm
@@ -5,6 +5,6 @@ set -e
 #DEBHELPER#
 
 if [ "$1" = "remove" ]; then
-       update-alternatives --remove x-terminal-emulator /usr/bin/mate-terminal
+       update-alternatives --remove x-terminal-emulator 
/usr/bin/mate-terminal.wrapper
 fi


It doesn't handle removal of the old alternatives using mate-terminal
directly; it probably should do that also...


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to