Re: Modernising menu manual icons requirement
- To: email@example.com
- Subject: Re: Modernising menu manual icons requirement
- From: Bill Allombert <firstname.lastname@example.org>
- Date: Wed, 4 Jun 2003 19:21:24 +0200
- Message-id: <[🔎] 20030604172124.GT22340@seventeen>
- Mail-followup-to: email@example.com
- In-reply-to: <firstname.lastname@example.org>
- References: <20030513195635.GR7238@seventeen> <email@example.com> <20030513210302.GT7238@seventeen> <firstname.lastname@example.org> <20030514073029.GA6942@starless.xtnet> <email@example.com> <20030514181732.GA10123@starless.xtnet> <firstname.lastname@example.org>
On Wed, May 14, 2003 at 05:43:49PM -0400, David B Harris wrote:
> On Wed, 14 May 2003 11:17:32 -0700
> You misunderstand though. It doesn't need to be done in menu itself. In
> fact, such wouldn't make sense because different menu systems need
> different icon sizes. Not only that, but it would be entirely
> superfluous for menu to do it since the menuing system may be able to
> scale things itself :)
> The menu-method itself would manage it.
> That being said, name a menu-method and I'll implement it. :)
Well if someone agree to maintain a package that provide a program
manage-icon-cache with the following spec or similar, the I will
add the needed hooks in menu so that this program is used if it
Read config file and return a path to an XPM icon that follow the
dimension specified in the config file. manage-icon-cache will rescale
/path/to/icon as needed, cache the result in the cache directory, and
output the path to the rescaled icon to stdout. If no rescaling is done,
manage-icon-cache return /path/to/icon and do not add it to the cache.
Clear the icon cache in the cache directory.
/etc/icon-cache.conf: configuration file. Provides the system wide
~/.icon-cache.conf: configuration file. Provides the per-user icon
/var/lib/icon-cache : system-wide icon-cache.
~/.icon-cache : per-user icon-cache.
Changing the config file will trigger a clearing of the cache at the
When run by non-root, manage-icon-cache will use scaled icons in
/var/lib/icon-cache if they are available and ( ~/.icon-cache.conf
does not exist or it is EQUIVALENT to /etc/icon-cache.conf.
EQUIVALENT is defined as being line by line identical, or
(optionnaly) by specifying the same configuration.
When there is no scaling to perform manage-icon-cache must be fast.
Imagine a large red swirl here.