I right now installed Konquest in Kubuntu 11.04 and I noticed the item konquest --caption "%c" in Application Launcher.

  1. Why is the caption overridden using --caption instead of taking the default one? Are there any useful reasons?
  2. I tried but failed to find out if there are any more placeholders like %c for the caption and if yes, which. So far, it seems to be a feature of all KDE applications, as it is listed in --help-kde for each program.

According to my research, it seems like --caption "%c" means "use the caption from the shortcut (.desktop etc.) as the application's window title."

One reason to use this may be to change the title according to locale, and the other one is to let user change it.

I added the list of those placeholders.
Click the question icon in Properties for one of .desktop Launchers, and then the Command field to get it.

  • %f - a single file name
  • %F - a list of files; use for applications that can open several local files at once
  • %u - a single URL
  • %U - a list of URLs
  • %d - the directory of the file to open
  • %D - a list of directories
  • %i - the icon
  • %m - the mini-icon
  • %c - the caption
  • Where did you get the information regarding %c from? Are there more placeholders like that? – Shi Aug 10 '11 at 15:30
  • @Shi: I noticed that when changing shortcuts' titles. And yes, there seem to be more of them. Default Dolphin launch command is dolphin %i -caption "%c" %u – Oleh Prypin Aug 10 '11 at 17:39
  • I was more hoping of a nice list available somewhere in the KDE documentation, or maybe the source code file of the application which actually "fills" the placeholders with values. – Shi Aug 10 '11 at 20:12
  • @Shi: Added the list. Now I'm hoping for some rep ;) – Oleh Prypin Aug 10 '11 at 21:52
  • And where did you get the list from? In Wikipedia terms: en.wikipedia.org/wiki/Wikipedia:Citation_needed… :) – Shi Aug 11 '11 at 21:49

When trying to get Subtitle Composer not to include the file name (with path) in the app name, I found out that --caption "%k" sets the app caption to the title of its desktop entry.

So my Subtitle Composer app window now has the plain simple caption "subtitlecomposer", which already fits nicely into the XBar widget :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.