[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#831730: desktop-base: Integration with KDE's plasma-desktop seems to no longer work with current version


On Wed, 20 Jul 2016, Raphael Hertzog wrote:
> So is there anyone from the KDE team who is willing to investigate and
> update the required integration? (Or at least provide initial guidance in
> this bug report so that others can pick it up)

I looked further into this issue but I quickly got stuck and had to ask
help upstream:

I just got two answers which lead me to some possible solutions.

It looks like that the script
/usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js is
executed when the user runs plasma for the first time. Unfortunately
that script does not offer any way to run other scripts at the same
time. Maybe we could patch it to allow this... but I don't know how easy
this is.

There's an other solution that we can use though: all scripts in
/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/ are
executed once for each user and they are also executed when plasma runs
for the first time. On the downside, it means that someone who has
customized his wallpaper and that will upgrade desktop-base will have its
wallpaper reset by the update script. Maybe we can improve the script to
detect this case and not do anything in that case... but again I don't
know how to do this right now.

That said I found the correct syntax to get the script working,
you can see this commit in my Kali upload:

The only other thing that we need to change for Debian is the line

  d[i].writeConfig('Image', 'kali')

that you would change into:

  d[i].writeConfig('Image', 'file:///usr/share/images/desktop-base/desktop-background')

Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/

Reply to: