[26070] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25374 - in trunk/debathena/debathena/kiosk: . debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Aug 11 09:50:29 2011

Date: Thu, 11 Aug 2011 09:50:22 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201108111350.p7BDoMaY026220@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-08-11 09:50:22 -0400 (Thu, 11 Aug 2011)
New Revision: 25374

Modified:
   trunk/debathena/debathena/kiosk/debian/changelog
   trunk/debathena/debathena/kiosk/prefs.js
   trunk/debathena/debathena/kiosk/xinitrc
Log:
In kiosk:
  * "Disable" printing and warn the user that they're doing it wrong
    (Trac: #1016)


Modified: trunk/debathena/debathena/kiosk/debian/changelog
===================================================================
--- trunk/debathena/debathena/kiosk/debian/changelog	2011-08-11 01:01:11 UTC (rev 25373)
+++ trunk/debathena/debathena/kiosk/debian/changelog	2011-08-11 13:50:22 UTC (rev 25374)
@@ -1,3 +1,10 @@
+debathena-kiosk (1.4.3) unstable; urgency=low
+
+  * "Disable" printing and warn the user that they're doing it wrong
+    (Trac: #1016)
+
+ -- Jonathan Reed <jdreed@mit.edu>  Thu, 11 Aug 2011 09:50:14 -0400
+
 debathena-kiosk (1.4.2) unstable; urgency=low
 
   * Call .run() on the dialog so that people can press Esc (Trac: #1007)

Modified: trunk/debathena/debathena/kiosk/prefs.js
===================================================================
--- trunk/debathena/debathena/kiosk/prefs.js	2011-08-11 01:01:11 UTC (rev 25373)
+++ trunk/debathena/debathena/kiosk/prefs.js	2011-08-11 13:50:22 UTC (rev 25374)
@@ -8,6 +8,11 @@
 user_pref("network.protocol-handler.external.nntp", false);
 user_pref("network.protocol-handler.external-default", false);
 
+// "Disable" printing.  (Doesn't actually disable it, but gives 
+// the illusion of doing so.  Users can't get their jobs anyway)
+user_pref("print.always_print_silent",true);
+user_pref("print.show_print_progress",false);
+
 // Disable the compatibility check for the r-kiosk extension
 // (the per-version preference is used in firefox 3.6+).
 user_pref("extensions.checkCompatibility", false);

Modified: trunk/debathena/debathena/kiosk/xinitrc
===================================================================
--- trunk/debathena/debathena/kiosk/xinitrc	2011-08-11 01:01:11 UTC (rev 25373)
+++ trunk/debathena/debathena/kiosk/xinitrc	2011-08-11 13:50:22 UTC (rev 25374)
@@ -40,6 +40,9 @@
     exit 0
 fi
 
+# Warn the user that printing is wrong.
+zenity --warning --title="No Printing" --text="You will not be able to print from this browser session.  Submitted print jobs will be discarded and cannot be released from Pharos printers.\n\nIf you need to print, please log in to a normal Athena session.  If you are a visitor looking to print a Campus Map, please visit the Information Center in Room 7-121."
+
 # Create a new firefox profile.
 rm -rf .mozilla
 firefox -CreateProfile default > /dev/null || exit 1


home help back first fref pref prev next nref lref last post