Re: Modernising menu manual icons requirement
- To: debian-policy@lists.debian.org
- Subject: Re: Modernising menu manual icons requirement
- From: Bill Allombert <allomber@math.u-bordeaux.fr>
- Date: Wed, 4 Jun 2003 19:21:24 +0200
- Message-id: <[🔎] 20030604172124.GT22340@seventeen>
- Mail-followup-to: debian-policy@lists.debian.org
- In-reply-to: <20030514174349.0a536c74.david@eelf.ddts.net>
- References: <20030513195635.GR7238@seventeen> <20030513163010.5b0b3fd4.david@eelf.ddts.net> <20030513210302.GT7238@seventeen> <20030513174715.67033585.david@eelf.ddts.net> <20030514073029.GA6942@starless.xtnet> <20030514082120.68d22e34.david@eelf.ddts.net> <20030514181732.GA10123@starless.xtnet> <20030514174349.0a536c74.david@eelf.ddts.net>
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
is installed.
SYNTAX
manage-icon-cache /path/to/icon
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.
manage-icon-cache --delete
Clear the icon cache in the cache directory.
FILES
/etc/icon-cache.conf: configuration file. Provides the system wide
icon size.
~/.icon-cache.conf: configuration file. Provides the per-user icon
size.
/var/lib/icon-cache : system-wide icon-cache.
~/.icon-cache : per-user icon-cache.
CAVEATS
Changing the config file will trigger a clearing of the cache at the
next run.
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.
Cheers,
--
Bill. <ballombe@debian.org>
Imagine a large red swirl here.
Reply to: