Enable education-menus for all users on a host?
Would it be useful to activate the cleaned up menus in education-menus
for all users on a host by adding the host in some host netgroup?
I suspect so, and propose a group named for example
education-menus-hosts is used for this. The implementation would be
something like this:
--- debian/changelog (revision 42493)
+++ debian/changelog (working copy)
@@ -36,6 +36,8 @@
* Updated cdd-dev build dependency to >= 0.5.5, to get a version with
support for the Enhances and Metapackage headers.
* New task lang-nb-desktop enhancing desktop-other
+ * Make it possible to activate the education-menus for all users on a
+ host by listing the host as member of the education-menus-hosts netgroup.
[José L. Redrejo Rodríguez]
* misc task:
--- debian-edu-menus.listing (revision 42493)
+++ debian-edu-menus.listing (working copy)
@@ -1,3 +1,2 @@
# Menu reordering for teachers and students
-edu-menus;XDG_CONFIG;/usr/share/debian-edu/menu;;$(id -Gn|egrep -qw 'teachers|students');Menu reordering
+edu-menus;XDG_CONFIG;/usr/share/debian-edu/menu;;$(id -Gn|egrep -qw 'teachers|students' || innetgr -h "$(uname -n)" education-menus-hosts);Menu reordering
The patch is completely untested.