slideshow does not work any more with dark mode

Bug #1965812 reported by Haitao Shan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
shotwell (Ubuntu)
Fix Released
Low
Jeremy Bícha

Bug Description

Hi,

I had ubuntu 22.04, which was upgraded from 21.10 following the link: https://linuxconfig.org/how-to-upgrade-ubuntu-to-22-04-lts-jammy-jellyfish. It has worked well for me until I run "apt update and apt upgrade" around Mar 18. I have wallpaper slideshow setup using shotwell before the upgrade. I noticed my desktop background went to black after the upgrade. I then logged out and logged in. The background was changed to an Ubuntu default. I tried to set desktop slideshow again using shotwell but it never worked any more. From the GUI, I did not see anything abnormal. But the desktop background simply did not change at all.

I guess something was broken by one of the upgraded packages.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: shotwell 0.30.14-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-22.22-generic 5.15.19
Uname: Linux 5.15.0-22-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 21 11:29:40 2022
InstallationDate: Installed on 2021-08-27 (205 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: shotwell
UpgradeStatus: Upgraded to jammy on 2022-02-08 (41 days ago)

Revision history for this message
Haitao Shan (ttttao) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Where are the images you are using for the slideshow stored? Could you add a 'journalctl -b 0' log from the session showing the issue?

Changed in shotwell (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Haitao Shan (ttttao) wrote :

Log attached.
What I did was: 1> boot up Ubuntu; 2> use shotwell to set slideshow and close it. 3> run the command you give to me.

Original my wallpapers are stored /home/<username>/Pictures/Wallpapers. I don't know whether shotwell will maintain a copy somewhere after importing.

Revision history for this message
Alexandru Buhnici (alexmro) wrote (last edit ):

I have this exact issue, after an update around the same date.
I can see the images are copied to /home/<username>/.local/share/shotwell/wallpaper/ and the XML is created with correct paths but that's it.
The wallpaper is not changed nor is the slideshow added to the list of wallpapers.

There's no .local/share/gnome-background-properties folder, either (which is where the configuration would be, apparently). I had to manually place an XML file inside the gnome-background-properties folder to make it work

Revision history for this message
Haitao Shan (ttttao) wrote :

Thanks for sharing your experience. I took a look at my .local/share and saw shotwell/wallpaper/ and the XML. I did not have .local/share/gnome-background-properties either. However, if I copied the XML to gnome-background-properties, it did not work for me.

I've tried to install Ubuntu 22.04 beta in a virtual machine and the slideshow seems to work fine. I guess maybe this is a bug that only appears when "apt upgrade". If that is the case, I think eventually no one will fix the issue for me as any Ubuntu developer can mark the bug something like "can't reproduce".

Revision history for this message
Alexandru Buhnici (alexmro) wrote (last edit ):

You don't have to copy the XML generated by shotwell to gnome-background-properties. You have to create a different XML (I named it wallpaper.xml) with this code that points to the XML from shotwell:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
 <wallpaper deleted="false">
  <name>Shotwell</name>
  <filename>/home/<user>/.local/share/shotwell/wallpaper/wallpaper.xml</filename>
  <options>zoom</options>
 </wallpaper>
</wallpapers>

Now, if you go to the wallpapers settings you will se your slideshow there

Revision history for this message
Haitao Shan (ttttao) wrote : Re: [Bug 1965812] Re: After "apt upgrade" around Mar 18, shotwell desktop slideshow does not work any more

Thanks for the detailed information. I will have a try later when I am at home.

Haitao by outlook mobile
________________________________
From: <email address hidden> <email address hidden> on behalf of Alexandru Buhnici <email address hidden>
Sent: Saturday, April 2, 2022 10:01:59 AM
To: <email address hidden> <email address hidden>
Subject: [Bug 1965812] Re: After "apt upgrade" around Mar 18, shotwell desktop slideshow does not work any more

You don't have to copy the XML generated by shotwell to gnome-
background-properties. You have to create a different XML (I named it
wallpaper.xml) with this code that points to the XML from shotwell:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
        <wallpaper deleted="false">
                <name>Shotwell</name>
                <filename>/home/<user>/.local/share/shotwell/wallpaper/wallpaper.xml</filename>
                <options>zoom</options>
        </wallpaper>
</wallpapers>

Now, if you go to the wallpapers settings you will se your slideshow
there

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1965812

Title:
  After "apt upgrade" around Mar 18, shotwell desktop slideshow does not
  work any more

Status in shotwell package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  I had ubuntu 22.04, which was upgraded from 21.10 following the link:
  https://linuxconfig.org/how-to-upgrade-ubuntu-to-22-04-lts-jammy-
  jellyfish. It has worked well for me until I run "apt update and apt
  upgrade" around Mar 18. I have wallpaper slideshow setup using
  shotwell before the upgrade. I noticed my desktop background went to
  black after the upgrade. I then logged out and logged in. The
  background was changed to an Ubuntu default. I tried to set desktop
  slideshow again using shotwell but it never worked any more. From the
  GUI, I did not see anything abnormal. But the desktop background
  simply did not change at all.

  I guess something was broken by one of the upgraded packages.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: shotwell 0.30.14-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-22.22-generic 5.15.19
  Uname: Linux 5.15.0-22-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Mar 21 11:29:40 2022
  InstallationDate: Installed on 2021-08-27 (205 days ago)
  InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
  ProcEnviron:
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: shotwell
  UpgradeStatus: Upgraded to jammy on 2022-02-08 (41 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1965812/+subscriptions

Revision history for this message
Haitao Shan (ttttao) wrote : Re: After "apt upgrade" around Mar 18, shotwell desktop slideshow does not work any more

Hi, Alexandru,

That xml does not work either. However, I happened to find out the root cause in my system. That is related to dark mode wallpaper. See https://twitter.com/alexm_gnome/status/1491527119389827074?s=20&t=j6y1hOlJlHulg57Ild47xA.

Once I set org.gnome.desktop.background.picture-url-dark to the same value in picture-url, my slideshow is back.

I think shotwell just blindly set the picture-url key without knowing picture-url-dark key.

Changed in shotwell (Ubuntu):
status: Incomplete → New
summary: - After "apt upgrade" around Mar 18, shotwell desktop slideshow does not
- work any more
+ slideshow does not work any more with dark mode
Revision history for this message
Jens Georg (yg-jensge) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks Jens!

Changed in shotwell (Ubuntu):
assignee: nobody → Jeremy Bicha (jbicha)
status: New → Triaged
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Jens, thank you for the fix.

That schema was introduced in gsettings-desktop-schemas 42~beta. How about moving the new lines you added below this line:

set_gs_string(schema_names[p], key_names[p], converted_val);

That way, it will still set the non-dark background even if the dark background schema doesn't exist. It will emit an error on the command line about the non-existent key but maybe that's ok too.

Changed in shotwell (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Jens Georg (yg-jensge) wrote :

Ah! right, good point

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shotwell - 0.30.14-1ubuntu5

---------------
shotwell (0.30.14-1ubuntu5) jammy; urgency=medium

  * Cherry-pick patch to also set dark wallpaper (LP: #1965812)

 -- Jeremy Bicha <email address hidden> Mon, 04 Apr 2022 16:53:50 -0400

Changed in shotwell (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.