* Ian Jackson ([EMAIL PROTECTED]) wrote:
> Package: firefox
> Version: 1.5.dfsg+1.5.0.1-1
> 
> The attached patch has the postinst use update-notifier to tell the
> user they need to restart firefox after an upgrade/reinstallation.
> 
> There is a relevant bug report in Malone
>  https://launchpad.net/distros/ubuntu/+source/firefox/+bug/36739
> but it's not hugely informative.
> 
> Note that you might not want to apply this patch as-is because we've
> removed the `echo' giving the same instructions.  Or you might prefer
> to do this via a debconf notification.

Ok, after actually installing the update-notifier applet, this patch
seems fairly good. Is there any way to add translations with this
approach? 
 
> --- 
> ../firefox-1502/construct/firefox-1.5.dfsg+1.5.0.2.orig/debian/firefox.postinst
>    2006-04-26 16:06:04.000000000 +0100
> +++ firefox-1.5.dfsg+1.5.0.2/debian/firefox.postinst  2006-04-28 
> 15:31:25.000000000 +0100
> @@ -17,4 +17,15 @@
>  
>  #DEBHELPER#
>  
> -echo "Please restart any running Firefoxes, or you will experience problems."
> +unud=/var/lib/update-notifier/user.d
> +if ps -C firefox-bin >/dev/null && test -d $unud; then
> +    cat <<END >$unud/firefox-restart-required
> +Name: Firefox restart required
> +Priority: High
> +Terminal: False
> +DontShowAfterReboot: True
> +Description: Firefox has been upgraded (or reinstalled) and must be 
> restarted.
> + Please quit and restart your web browser now.
> +END
> +
> +fi
> 

-- 
Eric Dorland <[EMAIL PROTECTED]>
ICQ: #61138586, Jabber: [EMAIL PROTECTED]
1024D/16D970C6 097C 4861 9934 27A0 8E1C  2B0A 61E9 8ECF 16D9 70C6

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s++: a-- C+++ UL+++ P++ L++ E++ W++ N+ o K- w+ 
O? M++ V-- PS+ PE Y+ PGP++ t++ 5++ X+ R tv++ b+++ DI+ D+ 
G e h! r- y+ 
------END GEEK CODE BLOCK------

Attachment: signature.asc
Description: Digital signature

Reply via email to