Package: torbrowser-launcher Version: 0.2.4-2 Severity: wishlist Tags: patch
Attached a patch to manage torbrowser-launcher as alternative for x-www-browser and gnome-www-browser. This will be more useful once 821093 get closed though. Cheers, Santiago
From 8abde7a42df40f2716280c49ed649907a6782552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ruano=20Rinc=C3=B3n?= <santi...@debian.org> Date: Wed, 27 Apr 2016 10:05:56 +0200 Subject: [PATCH] postinst, prerm: manage torbrowser-launcher as alternative for x-www-browser and gnome-www-browser (update-alternatives) --- debian/torbrowser-launcher.postinst | 15 +++++++++++++++ debian/torbrowser-launcher.prerm | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 debian/torbrowser-launcher.postinst create mode 100644 debian/torbrowser-launcher.prerm diff --git a/debian/torbrowser-launcher.postinst b/debian/torbrowser-launcher.postinst new file mode 100644 index 0000000..d0f7c1c --- /dev/null +++ b/debian/torbrowser-launcher.postinst @@ -0,0 +1,15 @@ +#! /bin/sh + +set -e + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then + update-alternatives --install /usr/bin/x-www-browser \ + x-www-browser /usr/bin/torbrowser-launcher 40 + update-alternatives --install /usr/bin/gnome-www-browser \ + gnome-www-browser /usr/bin/torbrowser-launcher 40 +fi diff --git a/debian/torbrowser-launcher.prerm b/debian/torbrowser-launcher.prerm new file mode 100644 index 0000000..68e162f --- /dev/null +++ b/debian/torbrowser-launcher.prerm @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then + update-alternatives --remove x-www-browser /usr/bin/torbrowser-launcher + update-alternatives --remove gnome-www-browser /usr/bin/torbrowser-launcher +fi + + -- 2.8.1
signature.asc
Description: PGP signature