Issues regarding customizing Kubuntu

Franklin Weng franklin at
Sat Jul 29 12:43:38 UTC 2017

Hi Gerry,

Thanks for your help.

2017-07-28 6:15 GMT+08:00 Gerry Boland <gerry.boland at>:

> Hi Franklin,
> maybe I can help with some of your questions. See replies inline
> On 26 Jul 2017, at 14:12, Franklin Weng <franklin at> wrote:
> <snip>
> 1. plasmashell doesn't honor the XDG related environment variables:  I
> set the XDG env variables like XDG_MENU_PREFIX, XDG_CONFIG_DIRS, ...
> etc. in the Xsession.d which should be loaded *before* kinit5 started.
> However these environment variables are not passed to kinit5 and hence
> XDG_MENU_PREFIX wouldn't work, which would cause that it always reads
> /etc/xdg/menu/ .
> You can use this command to see the environment variables that are being
> set for plasmashell, including by the scripts in Xsession.d:
> xargs -n 1 -0 < /proc/`pgrep plasmashell`/environ
> I did a test myself, and setting a variable in a script in the Xsession.d
> directory worked just fine. Note you need to take care, as some of the
> scripts set XDG_CONFIG_DIRS and XDG_DATA_DIRS already, so make sure your
> script runs after them.
> If you can check this, it’ll help us narrow in on where the problem is:
> either the env var isn’t set, or plasmashell isn’t reading and acting on
> the env var.

The result of the plasmashell environment is here:

XDG_MENU_PREFIX is set to "ezgo-", however the menu still shows shows the content of /etc/xdg/menus shows the menu with above settings   : log out and link to  : the menu shows what I want (the content defined

The above imgur album:

> 2. /etc/kde5rc seems not work:  According to the source code [1], it
> should read /etc/kde5rc to get the default profile path prefix.  However
> no matter how I set /etc/kderc, /etc/kde4rc, /etc/kde5rc with the
> following code:
> [Directories-default]    ## or [Directories]
> prefixes=/usr/share/ezgo/ezgo-kde/kde-profile/
> It wouldn't read the default configurations from the path I assigned.
> I agree the code says /etc/kde5rc, and the syntax you’re using appears
> correct. I don’t know how to test this however - what could I do to
> reproduce your custom menus?

apt-key adv --keyserver --recv-keys 4CD565B5
echo "deb ezgo13 main" >>
apt-get update

apt-get install ezgo-menu

The content of ezgo-menu is here:

It contains the /etc/Xsession.d/33ezgo-menu to define XDG_MENU_PREFIX

> 3. I couldn't use a new file to override the layout.js in
> /usr/share/plasma/shells/org.kde.plasma.desktop/contents/ or in
> /usr/share/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/.
> I need to directly change the content so that the desktop and panel I
> want can be applied, which violates the debian package policy.  Eike
> mentioned the "look-and-feel" packages (org.kde.[look-and-feel]).
> Please tell me where the document is and I'll see if I can use this way
> to solve the problem.
> Have you seen this?:

Thanks, I'll study it more.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kubuntu-devel mailing list