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

Re: Modernising menu manual icons requirement

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.

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.
  /etc/icon-cache.conf: configuration file. Provides the system wide
  icon size.
  ~/.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
  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.

Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

Reply to: