Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.
share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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
share|improve this answer
    
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
1  
Okay, thank you. I found it. –  Shi Aug 12 '11 at 19:30
show 1 more comment

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 :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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