After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761406 - Wrong desktop picture set when setting desktop picture though correct one is shown elsewhere
Wrong desktop picture set when setting desktop picture though correct one is ...
Status: RESOLVED DUPLICATE of bug 765687
Product: gnome-photos
Classification: Applications
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-02-01 16:49 UTC by Inactive account
Modified: 2016-09-09 13:02 UTC
See Also:
GNOME target: ---
GNOME version: 3.17/3.18


Attachments
GC-Test-Machine_Startup_Flashing.mp4 (733.25 KB, video/mp4)
2016-04-05 18:04 UTC, Inactive account
Details

Description Inactive account 2016-02-01 16:49:27 UTC
I have recently noticed that when going into gnome-photos that if one selects and image and then selects to set it as the desktop picture instead this image is set: https://bugs.launchpad.net/ubuntu-gnome/+bug/1521676/+attachment/4528024/+files/WrongDesktopImage.png

But the strange thing is is that if I then go into the Activities Overview the correct desktop image is shown there: https://bugs.launchpad.net/ubuntu-gnome/+bug/1521676/+attachment/4528025/+files/CorrectDesktopImageInActivitiesOverview.png

And if I go into the Background settings it shows the correct image as well, but I can never get the gnome-photos application to set the correct desktop image on the actual desktop though it sets it everywhere else: https://bugs.launchpad.net/ubuntu-gnome/+bug/1521676/+attachment/4528026/+files/CorrectDesktopImageInSettings.png

I initially reported this issue here, but thought I should also do so upstream: https://bugs.launchpad.net/ubuntu-gnome/+bug/1521676

---

OS Information:

    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 15.10
    Release:	15.10
    Codename:	wily
    Flavour: GNOME
    GNOME Version: 3.18

Package Information:

    gnome-photos:
      Installed: 3.18.2-1~wily1
      Candidate: 3.18.2-1~wily1
      Version table:
     *** 3.18.2-1~wily1 0
            500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ wily/main amd64 Packages
            100 /var/lib/dpkg/status
         3.16.2-1 0
            500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
Comment 1 Debarshi Ray 2016-02-01 17:06:45 UTC
What happens if you use Settings -> Background to set the wallpaper instead of Photos (ie. if you don't use Photos at all)? Does the wallpaper change as expected?
Comment 2 Inactive account 2016-02-01 17:14:41 UTC
Yes, it changes as expected.
Comment 3 Debarshi Ray 2016-02-01 17:21:12 UTC
From #gnome-shell on GIMPNet:

17:09 <rishi> Could this be a gnome-shell bug:                                  
      https://bugzilla.gnome.org/show_bug.cgi?id=761406 ? I vaguely recall      
      something like this in the past, but things seem to work with 3.18.x.
17:17 <rtcm> rishi: if you can't reproduce, it might be due to extensions,      
      that desktop is certainly not vanilla gnome-shell
17:19 <rishi> rtcm: Ah, good point. Extensions!
Comment 4 Inactive account 2016-02-01 17:26:25 UTC
I'll try disabling all extensions and let you know if the issue is still present.
Comment 5 Inactive account 2016-02-01 17:31:09 UTC
Ok, I disabled all my extensions, but the issue is still present.
Comment 6 Debarshi Ray 2016-02-01 22:21:01 UTC
Maybe the extensions didn't disable cleanly? Did you try restarting gnome-shell for good measure?
Comment 7 Inactive account 2016-02-03 16:45:21 UTC
Yes, I did, it appears to have nothing to do with the extensions.

Just to ask, where exactly is gnome-photos meant to save the image once it has taken it as the desktop image? Or does it just tell the program to look in the location where the actual image is rather than moving it somewhere such as the Wallpapers folder in Pictures where other programs put it? I'm just trying to tell if that is where part of the problem could be, if perhaps it puts it somewhere where the application setting the desktop image doesn't know about. Of course I don't know the internal workings of this, so I am just guessing.
Comment 8 Debarshi Ray 2016-02-04 08:32:43 UTC
It sets some GSettings - the following keys in the org.gnome.desktop.background schema:                                       
 * picture-uri = /path/to/the/file
 * picture-options = Zoom
 * color-shading-type = Solid
 * primary-color = "#000000000000"
 * secondary-color "#000000000000"

If you are setting the lock screen background, then it sets the same keys in org.gnome.desktop.screensaver schema.

As far as I remember, Settings -> Background does the same.
Comment 9 Inactive account 2016-02-04 16:52:11 UTC
Right, and the right-click option to make a certain image the desktop background does the same as well as making a copy of the file in the Wallpapers folder in Pictures?
Comment 10 Debarshi Ray 2016-02-04 17:37:11 UTC
(In reply to cooks.go.hungry from comment #9)
> Right, and the right-click option to make a certain image the desktop
> background does the same as well as making a copy of the file in the
> Wallpapers folder in Pictures?

Yes. You can play with gsettings(1) to change the settings from the shell.
Comment 11 Inactive account 2016-02-05 14:32:39 UTC
I'm going to have a look through the source code of gnome-photos to see if I can find the problem...
Comment 12 Inactive account 2016-02-14 13:22:20 UTC
I don't know how all these bug statuses work and everything, but should this report stay on "NEEDINFO"? Because I've given you all the info you requested...
Comment 13 Debarshi Ray 2016-02-14 14:05:57 UTC
I thought you were going to "look through the source code" and try to "find the problem". :)

I just tried this out in a recent gnome-continuous image [1] and couldn't reproduce it. So I for the time being, I am sticking to "something else is broken on your system" - could be gnome-shell extensions, could be anything else.

I am not religious about the status, but some more information is surely needed here, if are to make any progress. Otherwise it will eventually get closed as INCOMPLETE.

[1] http://build.gnome.org/continuous/buildmaster/images/z/current/
Comment 14 Inactive account 2016-02-14 14:24:51 UTC
Oh, yes, I am looking through the source code though haven't found that much... And am currently trying to get my IDE working with it so that I can debug the code properly.

But if all the other ways of setting a desktop picture work, and gnome-photos is using the same method as the other ways are, then why is only gnome-photos failing? What is it doing differently?
Comment 15 Debarshi Ray 2016-02-14 15:32:58 UTC
Did you try setting it directly with gsettings(1) (see comment 10) ?
Comment 16 Inactive account 2016-02-14 17:01:02 UTC
Yes, and it worked perfectly as expected.
Comment 17 Debarshi Ray 2016-03-31 15:33:44 UTC
Can you reproduce this on a freshly installed VM? If you can, then I would like to have the VM's image for debugging.
Comment 18 Inactive account 2016-03-31 15:42:07 UTC
I will see... But when you say you would like the VM's image, would like the ISO file that I installed it from or an actual snapshot of the VM?
Comment 19 Debarshi Ray 2016-03-31 15:51:56 UTC
Actual snapshot of the VM.

By the way, can you reproduce this using gnome-continuous (see comment 13)?
Comment 20 Inactive account 2016-04-05 18:03:10 UTC
Sorry I have not gotten back to you sooner, I have been rather busy lately. I will make the snapshot now and upload it when I can.

I tried using gnome-continuous, however I get the following issue on startup: GC-Test-Machine_Startup_Flashing.mp4 (Please ignore the shape that appears in the top right hand corner at the end, that is simply me turning off the screencasting program.) And when I get to this point it just carries on like this on an endless loop so I am unable to properly boot into it. What should I do about this?
Comment 21 Inactive account 2016-04-05 18:04:24 UTC
Created attachment 325450 [details]
GC-Test-Machine_Startup_Flashing.mp4
Comment 22 Inactive account 2016-04-06 10:24:53 UTC
I am sorry, but strangely, even though I could previously reproduce it in the same VM, I am now unable to... Though I can still reproduce it on the host. I will continue trying to see if I can reproduce it... But this is most peculiar.
Comment 23 Inactive account 2016-05-28 15:37:09 UTC
Getting the same thing here but from different circumstances: https://bugzilla.gnome.org/show_bug.cgi?id=766963
Comment 24 Debarshi Ray 2016-09-09 13:02:04 UTC
(In reply to cooks.go.hungry from comment #23)
> Getting the same thing here but from different circumstances:
> https://bugzilla.gnome.org/show_bug.cgi?id=766963

Due to the lack of any evidence to the contrary, I will mark this is a duplicate.

*** This bug has been marked as a duplicate of bug 765687 ***