From 6bdaa3665834b2eab044680e711aab9fccbeb017 Mon Sep 17 00:00:00 2001
From: Greg Frost <gregfrost1@bigpond.com>
Date: Fri, 31 Jul 2009 08:24:32 +0930
Subject: firefox: update fluxbox keys when firefox is installed (alt-w =
 firefox) w for web.

---
 abs/extra-testing/community/firefox/PKGBUILD        |  2 +-
 abs/extra-testing/community/firefox/firefox.install | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/abs/extra-testing/community/firefox/PKGBUILD b/abs/extra-testing/community/firefox/PKGBUILD
index 1d2ea63..babf777 100644
--- a/abs/extra-testing/community/firefox/PKGBUILD
+++ b/abs/extra-testing/community/firefox/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=firefox
 pkgver=3.5.1
-pkgrel=1
+pkgrel=2
 _xulver=1.9.1.1
 pkgdesc="Standalone web browser from mozilla.org"
 arch=(i686 x86_64)
diff --git a/abs/extra-testing/community/firefox/firefox.install b/abs/extra-testing/community/firefox/firefox.install
index 7463b6e..cd50dec 100644
--- a/abs/extra-testing/community/firefox/firefox.install
+++ b/abs/extra-testing/community/firefox/firefox.install
@@ -1,5 +1,17 @@
 post_install() {
   update-desktop-database -q
+
+  # For LinHES: check for a fluxbox keys file that doesnt have a mapping
+  # for Alt-w and map it to firefox.
+
+  if [ -e /home/mythtv/.fluxbox/keys ] 
+  then
+    if ! grep -q "Mod1 w" /home/mythtv/.fluxbox/keys 
+    then
+      echo Adding fluxbox key for firefox.
+      echo "Mod1 w :ExecCommand firefox" >> /home/mythtv/.fluxbox/keys
+    fi
+  fi
 }
 
 post_upgrade() {
-- 
cgit v0.12

