meant to support layouts that want external apps such as lattedock
or conky, it adds services (in the defaults file they're saved as
the filename of the desktop file) in autostart and starts immediately
the app as well.
before applying a lnf, it removes from autostart anything the old
package had and attempts to stop the apps
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R119:49ae81f280bd: support for defining autostart apps in lnf packages
tried to start/stop lattedock with the mechanism
some fallback may be needed for non kde apps
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
@mart I suppose this mechanism is the first step in order to load external apps (such as lattedock) through the Look N' Feel package. Fantastic news of course! :)
in the future would it be possible for these apps to include also their layout in the Look N' Feel package?
For example Latte supports import/export of its layouts so it is possible to dynamically change its layout
from a Look n' Feel package.
we could add a new named file in the lnf package for the latte layout: in what format is it exported?
so lattedock upon startup may go read that file (is already possible for any app to access that package via standard KPackage api and reading the current lnf from kdeglobals, adding a new named file just makes it a bit more official)
kcms/lookandfeel/kcm.cpp | ||
---|---|---|
387 | it seems to look for a systemd service file? |
nice! I can play with it with some guidance to test it in order to support it both for 0.7 and master Latte versions if this is possible.
the layout file is just a text file that ends with .layout.latte .
Inside it looks like just like a plasma's appletsrc file with some extra configgroups that Latte needs.
The name of the file is also used as a layout name, e.g. Plasma.layout.latte means a Latte layout named Plasma .
If you want to take a look of one layout file a small example is:
Theoretically it should be also possible to download/install from store.kde.org any applets that can be found inside the layout.latte file
and cant be found in the user's environment.
Just like plasma is doing, I think.