Web lists-archives.com

Re: plasma 5 desktop scripting file locations / examples?

On Tuesday 28 February 2017 23:46:00 Patrick Schleizer wrote:
> Hi,
> I am Patrick, a maintainer of Whonix, which Whonix is a Linux derivative
> with at least several thousand users, that by default is using Debian
> with Debian KDE packages. Is it okay if I ask a few questions on how to
> pre-configure KDE as a Linux distribution?
> Are you aware of any example (Debian) packages that pre-configure
> plasma 5? These could help me to figure out the correct file locations
> and environment variables.
> In KDE 4, essentially the following worked.
> [1]
> /usr/share/whonix-gw-kde-desktop-conf/share/apps/plasma-desktop/init/00-defa
> ultLayout.js

in Plasma5, some settings are condensed in theme packs called look and feel 
packages, that include things such default layout, widget style, icon theme...

here is a little video tutorial how to do them

there is an utility in Plasma 5.8/5.9 called lookandfeelexplorer, that can 
create a l&f package that exports the current settings values supported by it 
(included default plasmoids layout).
for distributions with a custom look, it's advised to create one of them.

then the only config key you have to replace is in kdeglobals

where org.whonix.yourthemename is the name of your package (folder name and 
plugin name in its metadata.desktop)

> [4]
> /etc/X11/Xsession.d/50kde-sounds-off
> if [ -z "$XDG_CONFIG_DIRS" ]; then
>    XDG_CONFIG_DIRS=/etc/xdg
> fi
> export XDG_CONFIG_DIRS=/usr/share/kde-sounds-off/:$XDG_CONFIG_DIRS
> [5]
> /usr/share/kde-sounds-off/knotifyrc

sounds and notifications configurations are not supported in the look and feel 
packages, so you still need to do this

Marco Martin