Subject: pkg/18168: packages could contain menus (patches provided)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 09/04/2002 10:05:56
>Number:         18168
>Category:       pkg
>Synopsis:       allow packages to help generate menus (patches provided)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 10:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.3
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.5.3 NetBSD 1.5.3 (JCR-1.5-20020723) #0: Tue Jul 23 15:18:22 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-1.5-20020723 i386
Architecture: i386
Machine: i386
>Description:
End-users would find it useful if they could have menus generated
to reflect the installed packages.

Admins would save time if menus could be automatically generated
when packages were installed.
>How-To-Repeat:
Install a package then manually help all your end-users to add to their
window manager's menu.

Pretend you are a novice and install editors/gnotepad. Then wonder how to
start it via your menu (or command-line).

>Fix:
I have patches for mk/bsd.pkg.{defaults.,}mk and pkg_install at
http://www.reedmedia.net/misc/netbsd/menus/. These patches all
a package to install menu entries (if provided) and remove when
package is removed.

I have examples there too.

I discussed this a little on the tech-pkg mailing list.

Note:
1) menu entry data is generic and not window manager specific;
2) separate script(s) can be installed to use menu entry data
   to make menus specific for window manager(s);
3) it will not overwrite default menus (unless that window manager
   package maintainer doesn't provide a default menu and chooses to
   use it);
4) users/admins can override the settings with their additional
   menu entry data files;
5) again: users and admins are not forced to use it.

Please allow package maintainers to easily provide menu entries for
their packages.

(I need to submit patches for further documentation and provide a few
packages for simple scripts specific for window managers.)
>Release-Note:
>Audit-Trail:
>Unformatted: