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

2016-07-28 Thread Raphael Hertzog
Hi,

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:
https://mail.kde.org/pipermail/plasma-devel/2016-July/056598.html

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:
http://git.kali.org/gitweb/?p=packages/desktop-base.git;a=commitdiff;h=1d846a74c9f0f78d175514c193890ddd791dbef3

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')

Cheers,
-- 
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/



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

2016-07-20 Thread Raphael Hertzog
On Tue, 19 Jul 2016, Sune Vuorela wrote:
> > $ cat kde-wallpaper/10-desktop-base.js
> > // Placed in /usr/share/kde4/apps/plasma-desktop/init/
> 
> yeah. that looks kind of old.
> 
> > (This has been identified on a Kali Linux system but I have all the
> > reasons to believe that it also applies to a Debian testing system)
> 
> Without having investigated a single thing, I also have all the reasons to 
> believe it doesn't work in a current Debian testing/unstable Plasma 
> installation.

Unlike the average package, I believe that desktop-base has no active
maintainer that is going to take care of this, it's more one of those
packages where contributors from each desktop team are supposed to handle
things related to their desktop.

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)

Cheers,
-- 
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/



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

2016-07-19 Thread Sune Vuorela
On Monday 18 July 2016 21:43:58 Raphaël Hertzog wrote:
> When you install KDE on a fresh system, the default wallpaper that you get
Plasma
> is not the one provided by desktop-base. So it looks like that the
> integration provided by
> /usr/share/kde4/apps/plasma-desktop/init/10-desktop-base.js is no longer
> working as expected and might need an update to work with the version of
> KDE currently in testing/unstable.
Plasma
> 
> $ cat kde-wallpaper/10-desktop-base.js
> // Placed in /usr/share/kde4/apps/plasma-desktop/init/

yeah. that looks kind of old.

> (This has been identified on a Kali Linux system but I have all the
> reasons to believe that it also applies to a Debian testing system)

Without having investigated a single thing, I also have all the reasons to 
believe it doesn't work in a current Debian testing/unstable Plasma 
installation.

/Sune
-- 
I didn’t stop pretending when I became an adult, it’s just that when I was a 
kid I was pretending that I fit into the rules and structures of this world. 
And now that I’m an adult, I pretend that those rules and structures exist.
   - zefrank



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

2016-07-18 Thread Raphaël Hertzog
Package: desktop-base
Version: 8.0.2
Severity: important
User: de...@kali.org
Usertags: origin-kali

When you install KDE on a fresh system, the default wallpaper that you get
is not the one provided by desktop-base. So it looks like that the
integration provided by
/usr/share/kde4/apps/plasma-desktop/init/10-desktop-base.js is no longer 
working as expected and might need an update to work with the version of
KDE currently in testing/unstable.

$ cat kde-wallpaper/10-desktop-base.js 
// Placed in /usr/share/kde4/apps/plasma-desktop/init/
// This script is run for new users, which do not have a .kde directory
// and it set's the default wallpaper for all activities

a = activities()

for (i in a) {
a[i].wallpaperPlugin = 'image'
a[i].wallpaperMode = 'SingleImage'
a[i].currentConfigGroup = Array('Wallpaper', 'image')
a[i].writeConfig('wallpaper',
'/usr/share/images/desktop-base/desktop-background')
a[i].writeConfig('wallpaperposition', '2')  //enables croping
}

(This has been identified on a Kali Linux system but I have all the
reasons to believe that it also applies to a Debian testing system)

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages desktop-base depends on:
ii  dpkg 1.18.9
ii  librsvg2-common  2.40.16-1

desktop-base recommends no packages.

Versions of packages desktop-base suggests:
ii  gnome  1:3.14+5

-- no debconf information