Re: How to customize fvwm entries ?
[EMAIL PROTECTED] (shaul) writes: It seems to me that you are wrong, since when new packages are installed, update-menus considers the users who run update-menus as well. I am saying that on the basis of the following lines (from /usr/doc/menu/html/ch5.html): [snip] Am I right ? One of us should just try it and see. I am wrong. I just tried it (unless there is some cron script, or something else, that I couldn't find although I looked for). The users customizations do not get updated even when the sytem menu does. But the reason I don't think it will update individual users' menus is that when I run it, all the menus get put in ~/.fvwm2/whatever. When root runs it, the menus go into /etc/X11/fvwm2/whatever. If something changes because a new package is installed, the files in /etc/X11/fvwm2/ will be changed, but the old files in ~/.fvwm2/ will still contain the old data, and will override the new data, until that user runs update-menus again. Should this behavior of the update-menus be changed ? Perhaps update-menus should keep a list of the users that run it on their home dir ? As a first step, perhaps users (at least those with a menu customizations) should be email-ed to let them know that the system menu has been changed ? BTW: 1) Is it my bad English, or does /usr/doc/menu/html/ch5.html indeed imply that users customizations are getting updated in these circumstances ? 2) Maybe dpkg should automatically email-ed all the users about software changes ? (which will be added to the long list of dpkg wishes)
Re: How to customize fvwm entries ?
[EMAIL PROTECTED] (shaul) writes: It seems to me that you are wrong, since when new packages are installed, update-menus considers the users who run update-menus as well. I am saying that on the basis of the following lines (from /usr/doc/menu/html/ch5.html): [snip] Am I right ? One of us should just try it and see. But the reason I don't think it will update individual users' menus is that when I run it, all the menus get put in ~/.fvwm2/whatever. When root runs it, the menus go into /etc/X11/fvwm2/whatever. If something changes because a new package is installed, the files in /etc/X11/fvwm2/ will be changed, but the old files in ~/.fvwm2/ will still contain the old data, and will override the new data, until that user runs update-menus again. -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Is there anyone who actually believes that USAicans are so modest or intellectually honest as to be unable to find someone to sue? - Cameron Laird
Re: How to customize fvwm entries ?
On Tue, 24 Nov 1998, shaul wrote: [EMAIL PROTECTED] (shaul) writes: My /etc/X11/fvwm2/menudefs.hook has the following entry for lyx: [23:36:37 shaul]$ grep lyx /etc/X11/fvwm2/menudefs.hook + lyx Exec/usr/X11R6/bin/lyx [23:38:51 shaul] I want to change it to + lyx Exec /usr/X11R6/bin/lyx -width 631 -height 461 To change it for all users: $ su Password: # cp /usr/lib/menu/lyx /etc/menu/ # edit /etc/menu/lyx [ Make the change. ] # update-menus # ^D $ Thank you. How a user can set it for himself ? (It seems to me that menu offers a way to do it, only I couldn't understand how) I experimented a bit with customizing .fvwm2 , and it seems the following should work (it worked for xemacs package). * first, find out which package lyx is installed in, e.g. dpkg -S lyx | cut -f1 -d: | sort -u should give you a pretty good clue. let's assume, for the sake of example the package is called lyx-10-3 that's what I use from now on. If yours isn't called that, substitute what the pacakge is really called on your system for lyx-10-3. You just want to place a new entry in the same location in the menu, but with a different command line, right?, so mkdir ~/.menu # if you don't already have one YOUR_FAVORITE_EDITOR ~/.menu/lyx-10-3 # note the name of the file is the # is the same as the name of the # package we determined in previous # step somethink like this should go in the ~/.menu/lyx-10-3 (I may have some unnecessary stuff in here, so if someone can correct me, I'll be glad) ?package(lyx-10-3):\ command=/usr/X11R6/bin/lyx -width 631 -height 461 \ needs=X11\ section=Apps/Editors\ title=lyx ,or maybe you don't want it placed under Apps/Editors, then you would change the section also, you can make a new section, just by taking the name at the end, e.g: section=Apps/Editors/My-Favorite (don't know if spaces are OK -- wouldn't hurt to try though), or section=Apps/WP -- you get the idea. If you wanted it placed on the root applications menu, rather than in one of the sections, the easiest way I found was to leave the file .menu/lyx-10-3 empty, (e.g, just echo -n ~/.menu/lyx-10-3) and to make a file ~/.fvwm2/main-menu.hook (if you want the entry placed after the main entries but before the Exit option), or ~/.fvwm2/main-menu-pre.hook, if you want the entry placed at the top of the root menu. in eithe case, the line should be what the /usr/doc/fvwm2/README.sysrc calls a menu continuation line, e.g something like + +lyx Exec /usr/X11R6/bin/lyx -width 631 -height 461 At first I thought the configuration of fvwm2 was really inflexible, but after reading the docs for menu and the /usr/doc/fvwm2/README.sysrc, I start to realize how I can produce just the right mix of system-defined settings and my own goodies. -- Evgeny Roubinchtein, [EMAIL PROTECTED] ... IBM: Ici Beaucoup Merde
Re: How to customize fvwm entries ?
[EMAIL PROTECTED] (shaul) writes: Thank you. How a user can set it for himself ? (It seems to me that menu offers a way to do it, only I couldn't understand how) He can put it in ~/.menu/lyx and run update-menus himself, which will create all the files for just that account. However, I don't think anything will get changed automatically for that user when new packages are installled. It seems to me that you are wrong, since when new packages are installed, update-menus considers the users who run update-menus as well. I am saying that on the basis of the following lines (from /usr/doc/menu/html/ch5.html): Start quoting Debian Menu System - chapter 5 The internals of the menu package 5.1 The update-menus program On startup, update-menus checks the file /var/run/update-menus.pid and the pid in it. If there's an update-menus process with that pid it kills it. If /var/lib/dpkg/lock exists, it forks to background and returns control to dpkg. The background process checks the /var/lib/dpkg/lock file approx. every second until the file's gone. After that, the following steps are performed: 1.sets a variable $dirs to dirs=/etc/menu /usr/lib/menu /usr/lib/menu/default (and if a user runs prgn/update-menus/, it will add ~/.menu to the front of that list) 2.it reads the list of installed packages 3. for d in $dirs; do End quoting. Am I right ?
Re: How to customize fvwm entries ?
[EMAIL PROTECTED] (shaul) writes: Thank you. How a user can set it for himself ? (It seems to me that menu offers a way to do it, only I couldn't understand how) He can put it in ~/.menu/lyx and run update-menus himself, which will create all the files for just that account. However, I don't think anything will get changed automatically for that user when new packages are installled. -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Is there anyone who actually believes that USAicans are so modest or intellectually honest as to be unable to find someone to sue? - Cameron Laird
Re: How to customize fvwm entries ?
[EMAIL PROTECTED] (shaul) writes: My /etc/X11/fvwm2/menudefs.hook has the following entry for lyx: [23:36:37 shaul]$ grep lyx /etc/X11/fvwm2/menudefs.hook + lyx Exec/usr/X11R6/bin/lyx [23:38:51 shaul] I want to change it to + lyx Exec /usr/X11R6/bin/lyx -width 631 -height 461 To change it for all users: $ su Password: # cp /usr/lib/menu/lyx /etc/menu/ # edit /etc/menu/lyx [ Make the change. ] # update-menus # ^D $ Thank you. How a user can set it for himself ? (It seems to me that menu offers a way to do it, only I couldn't understand how)
Re: How to customize fvwm entries ?
[EMAIL PROTECTED] (shaul) writes: My /etc/X11/fvwm2/menudefs.hook has the following entry for lyx: [23:36:37 shaul]$ grep lyx /etc/X11/fvwm2/menudefs.hook + lyx Exec/usr/X11R6/bin/lyx [23:38:51 shaul] I want to change it to + lyx Exec /usr/X11R6/bin/lyx -width 631 -height 461 To change it for all users: $ su Password: # cp /usr/lib/menu/lyx /etc/menu/ # edit /etc/menu/lyx [ Make the change. ] # update-menus # ^D $ -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Is there anyone who actually believes that USAicans are so modest or intellectually honest as to be unable to find someone to sue? - Cameron Laird