[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde
Subject:    Re: What are %i and %m in the Execute line
From:       Matthias Ettrich <ettrich () troll ! no>
Date:       1998-11-29 11:45:16
[Download RAW message or body]

On Sun, 29 Nov 1998, Tim Bird wrote:
>I've tried to find documentation on the options that you can put
>in the Execute line of an Application.kdelnk file.  I've found
>the other macros (%u, %f, and the like), but I can't find any
>documentation on %i or %m.  I see these used by some of the 
>kde applications.

They are used by *all* kde-applications (since they are implemented in
KApplication and all good kde-programs create a KApplication object before they
even look at the command line arguments ;-):

A standard line for a KDE application looks like this:

      foo .....    %i %m -caption \"%c\"

Pretty confusing, but it has been design in that way to be able to integrate
legacy, non-KDE applications as good as possible.

kfm when executing the line from above will extend the command to

     foo -icon something.xpm -miniicon something_mini.xpm -caption \"The Foo\"

Both the icon and the minicion as well as "The Foo" are properties defined
in the kdelnk file. If the icons are not defined, they simply default to
the executable name "foo".

This way a user can change these things in the menu-editor for his applications.
"-caption" is important, because no user will accept that the menu item "Editor"
starts something called "kedit-0.9pl4-build47". Instead, he expects a window
called "Editor". Furthermore these names are localised, i.e. an american
launches "CD-Player" and gets a window called "CD-Player" while a german
launches "CD Spieler" and gets a window called "CD-Spieler".

I think there is a bulletin on http://www.kde.org talking about these issues as
well.

Matthias



>
>Can anyone help?
>
>Tim Bird
>-- 
>Send posts to:  kde@lists.netcentral.net
> Send all commands to:  kde-request@lists.netcentral.net
>  Put your command in the SUBJECT of the message:
>   "subscribe", "unsubscribe", "set digest on", or "set digest off"
>PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
>**********************************************************************
>This list is from your pals at NetCentral <http://www.netcentral.net/
-- 
Send posts to:  kde@lists.netcentral.net
 Send all commands to:  kde-request@lists.netcentral.net
  Put your command in the SUBJECT of the message:
   "subscribe", "unsubscribe", "set digest on", or "set digest off"
PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic