From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Suggest A debian-style menu system for guix Date: Mon, 24 Apr 2017 12:22:02 +0000 Message-ID: <20170424122202.zt4fmodm6ue3g3xf@abyayala> References: <6ee2d43f.afeb.15b9f245988.Coremail.tumashu@163.com> <20170424094807.grk3vhgismvb3aku@abyayala> <877f2af6ar.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2d0Q-0002EJ-DX for guix-devel@gnu.org; Mon, 24 Apr 2017 08:22:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2d0L-0000n4-Hw for guix-devel@gnu.org; Mon, 24 Apr 2017 08:22:14 -0400 Received: from 93-95-228-241.1984.is ([93.95.228.241]:46016 helo=sharknado9001.pragmatique.xyz) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2d0L-0000mc-3B for guix-devel@gnu.org; Mon, 24 Apr 2017 08:22:09 -0400 Content-Disposition: inline In-Reply-To: <877f2af6ar.fsf@163.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Feng Shu Cc: guix Feng Shu transcribed 1.5K bytes: > ng0 writes: > > > tumashu transcribed 1.0K bytes: > >> Debian menu system (https://www.debian.org/doc/packaging-manuals/menu.html/ch3.html) is a very useful tool, > >> is it possible develop a similar tool for guix? > > > > Could you explain what this exactly does? > > > > The manual page only documents the insides, not the description. > > The below comment is from debian menu introduction. if a package have a > debian menu file, all window-manager's menu in debian will show this > package menu. > > #+BEGIN_COMMENT > Before the advent of update-menus, when the sysadmin installed a package onto a Debian system, they would need to edit various window manager config files to make the new program show up on, for example, fvwm's menus. The menus could easily become out of sync with what programs were actually available, with some menu items that didn't work, and other programs that lacked a menu entry. update-menus and Debian's menu package aim to solve this problem. > > update-menus automatically generates menus of installed programs for window managers and other menu programs. It should be run whenever a menu file or menu-method file is changed. update-menus will be ran automatically when Debian packages that contain menu files are installed or removed from the system. Users themselves can add/delete menu items, and should then run update-menus as that user, thus creating window-manager startup files that are used in preference to the systemwide files. > #+END_COMMENT > > -- > > Thanks. So what's the difference to existing menu-generators specific to many or only a subset of window-managers, such as obconf? Option 1: we could do this in scheme somehow, associated to Guix. Option 2: we make this a choice (opt-in, run it on your own), not an opt-out as coming up with a way where user menus are touched is from my perspective a no-go. I would not want some automatic generator to touch my menus which are slightly different from just generated ones. -- PGP and more: https://people.pragmatique.xyz/ng0/