Support for tryExec in sidebar plugins
David Faure
faure at kde.org
Mon Jul 19 19:43:40 BST 2004
On Monday 19 July 2004 20:33, Marcus Camen wrote:
> Hi *,
>
> AFAIK for kdm session files (like twm.desktop) we read the 'TryExec' key
> in the .desktop file and check if the given executable is available or
> not. The same applies for KService which is used by the Kontact plugin
> system (e.g. David and Daniel committed a modified newsticker plugin
> today).
>
> The attached patch implements a similar functionality in
> kdebase/konqueror/sidebar/sidebar_widget.cpp. It affects the 'Add New'
> popup menu in a way that sidebar plugins which have (TryExec==foo &&
> executable foo does not exist) will not be shown. Therefore a user will
> not be able to add non-functional plugins.
I like the idea but I think it should be implemented with KDesktopFile::tryExec()
(just instanciate a KDesktopFile instead of a KSimpleConfig)
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list