[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changes to menu packgae



> On Mar 29, joost witteveen wrote
> >
> [snip]
> >   When we leave the last loop, we are sure that
> >     -there is no dpkg running any more (at least the last status file is
> >      saved),
> >     -we are the onlu update-menus running.
> >   and thus we can do the "old" update-menus stuff, like
> >   
> >     if (state == "*install*") then generate menu-entry
> >   
> 
> Errm. Shouldn't you be looking for "installed" instead of "install"
> Packages which are "remove ok installed" should still get menu entries,
> which those which are "install ok conffiles" shouldn't.

Thanks. I was just typing without thinking there.

> > > Also, it would be nice to do the following by default:
[...]
> > >  s/WindowManagers/Window Managers/
> > >  s/XShells
> > 
> > The one disadvantage is that as far as I'm aware this would break fvwm2,
> 
> But does it? Let's take dosemu as an example. It installs its X11 menu
> entry as:
> 
> x11 Apps/Emulators dosemu /usr/X11R6/include/X11/pixmaps/dosemu.xpm "The Linux Dos Emulator" /usr/bin/xdos
> 
> and it gets displayed as "The Linux Dos Emulator" (without the quotes of
> course, but with the whitespace) by both afterstep and fvwn2. Wouldn't it
> be ok if you just did something like s/XShells/"X Shells"/, say?
> 
>   Christian

The _title_ ("The Linux Dos Emulator") can indeed have spaces. But the
_section_ (Apps/Emulators) wasn't designed to have spaces. For example,
for the 9wm window manager, the section name becomes a function name
in the /etc/X11/9wm/system.9wmrc bash script, and I'm not sure function
names can have spaces in them (just tried, failed). And I _guess_
most other window managers would accept spaces in the section names, as
long as you put quotes around the names, but probably not all.
At the moment, no quotes are put around the names, so I'm absolutely
sure every window manager is going to break. Just try it.

-- 
joost witteveen     joostje@debian.org
    
I came, I saw, ..., well, it wasn't free so I left again. (LUA, 1988)


Reply to: