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

List:       kde-devel
Subject:    Re: How to define QVariantList of KCModule via .desktop-files?
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2010-09-21 7:48:02
Message-ID: 201009210948.08554.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday, 2010-09-21, Andriy Rysin wrote:
> 2010/9/20 Matthias Fuchs <mat69@gmx.net>
> 
> > Hi,
> > 
> > I have exported a KCModule and now want add an argument to its
> > constructor via
> > a desktop file.
> > 
> > The idea is that at compilation time it is not clear what the ui of the
> > KCModule looks like or what KConfigSkeleton should be used.
> > 
> > Now if I can define at least one argument -- e.g. a file path, or just a
> > name
> > -- via the desktop file the module could look up what to do and how to do
> > this
> > at runtime.
> > 
> > The reason I want to make this is that I create kross plugins that should
> > be
> > configureable comfortable via KPluginSelector.
> > 
> > 
> > Cheers,
> > matthias
> > 
> I was actually asking the same question couple of months ago, seems to be
> currently there's no way to pass arguments, though as KCModule takes
> arguments it'd make sense to be able to pass them in kcmshell4 and desktop
> files.

What about reading your KCM's .desktop file using KDesktopFile and checking a 
custom entry?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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