kf5options and qt5options manpages

David Faure faure at kde.org
Sat Apr 5 11:00:07 UTC 2014


On Wednesday 29 January 2014 12:47:02 Albert Astals Cid wrote:
> El Dimecres, 29 de gener de 2014, a les 09:25:47, David Faure va escriure:
> > On Saturday 25 January 2014 16:36:22 Albert Astals Cid wrote:
> > > El Dissabte, 25 de gener de 2014, a les 10:20:20, David Faure va 
escriure:
> > > > On Tuesday 21 January 2014 18:38:28 Jonathan Riddell wrote:
> > > > > kdeoptions and qtoptions manpages listed the common options to
> > > > > applications
> > > > > using kdelibs4 and qt4.
> > > > > 
> > > > > These have just become kf5options and qt5options.
> > > > > 
> > > > > But which options are still true?
> > > > > 
> > > > >        --caption caption
> > > > >        
> > > > >            Use caption as name in the titlebar.
> > > > 
> > > > Ah, this is a kde4support thing (kcmdlineargs).
> > > > If we think this is useful, we should add it to Qt.
> > > > Is it useful?
> > > > 
> > > > >        --icon icon
> > > > >        
> > > > >            Use icon as the application icon.
> > > 
> > > Isn't this kind of mandated by the desktop entry spec that says that %i
> > > will be translated to --icon?
> > > Besides ./kio/src/core/desktopexecparser.cpp seems to use it.
> > 
> > You're somewhat right. Note that the .desktop file for an app doesn't have
> > to use %i, if the app doesn't support --icon.
> > 
> > I can see the idea of the feature, using the Icon field in the .desktop
> > file for both menus and the app window icon, but my question is whether
> > it's really used/useful in practice. In my kde4 applications dir, I see
> > 16 .desktop files using %i, plus the 14 .desktop files for okular but
> > that's just one app, so 17 apps in total. However, I suspect that most of
> > these would work just the same without %i, since they use the default
> > icon name anyway (e.g.
> > ktorrent.desktop, Icon=ktorrent).
> > Plus, the apps need a good default icon anyway, for the case where they
> > started another way (e.g. from the command line).
> 
> Sure, ok, forget the .desktop scenario, the real useful scenario is the same
> than -caption and is actually starting something from a command line and
> giving it a custom icon, like let's say, konsole or kdialog but you pretend
> they are something you created for your own command line program.
> 
> Does that make more sense?

Yep.

BTW, --qwindowtitle is in and --qwindowicon will soon be
( https://codereview.qt-project.org/#change,82796 )

(with --title and --icon aliases on X11 for compatibility, but better use the 
portable names)

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list