[kde-community] Plasmoids and Apps - was - Re: Applications in KDE Generation 5

Sebastian K├╝gler sebas at kde.org
Fri Jan 17 11:05:51 UTC 2014

On Friday, January 17, 2014 09:21:29 Kevin Krammer wrote:
> > > > Can you start it from the command line?
> > >
> > > plasma-windowed can be run from the commandline, e.g.
> > > plasma-windowed org.kde.networkmanagement
> >
> > That's a bit too long vs "kcalc", but i guess you could always install a
> > shell script file in /usr/bin/kcalc that just runs "plasma-windowed
> > org.kde.calculator" inside.
> Right. Or I imagine that there could be a PlasmaAppletView class or similar 
> that can be used in a small launcher executable
> int main(..)
> {
>     // create app
>     PlasmaAppletViewer viewer("org.kde.calc");
>     viewer.show();
>     return app.exec();
> }

That's pretty much what plasma-windowed does (modulo some setup of 
KDeclarative, etc.). Disadvantage of a binary-per-app would be that it 
requires compiling, with a generic "app shell loader thing" (like plasma-
windowed), you can write whole apps without compiling anything, so making it 
really easy to write, and deploy, no setup of development environment, etc.

In order to make it easy to start them from the commandline, a one-liner 
script installed into the PATH would be enough. (Done that before, works like 
a charm.)


http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

More information about the kde-community mailing list