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 738673 - [nautilus] 3.14 Desktop is rendered even if shouldn't
[nautilus] 3.14 Desktop is rendered even if shouldn't
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Desktop
3.16.x
Other Linux
: Normal major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-17 09:37 UTC by Balló György
Modified: 2015-08-24 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Don't draw the desktop if another desktop manager in use (2.62 KB, patch)
2015-07-26 15:17 UTC, Balló György
committed Details | Review

Description Balló György 2014-10-17 09:37:45 UTC
Since version 3.14, nautilus draws the desktop icons when it's launched, even if another desktop manager (caja, nemo) already drew it. It shows the following message on console output:

** (nautilus:2620): CRITICAL **: Another desktop manager in use; desktop window won't be created
Comment 1 André Klapper 2014-10-17 10:04:44 UTC
Which distribution is this about?
Do you have the option of desktop managing icons activated? Is so, can you try
again deactivating it?
Comment 2 Balló György 2014-10-17 11:18:15 UTC
Distribution is Arch Linux.

And the desktop icons are enabled:
$ gsettings set org.gnome.desktop.background show-desktop-icons true

But nautilus shouldn't draw the desktop icons if another desktop manager already drew it, even if it's enabled. It's a regression in nautilus 3.14.
Comment 3 Hong Xu 2014-10-17 19:25:22 UTC
Disabling `show desktop icons` makes the issue disappear. However, it is not supposed to happen even when it's enabled.

Another issue I noticed is that when I deactivate the `show desktop icons` option, the desktop background is reset to default.
Comment 4 Balló György 2014-12-05 15:05:32 UTC
Still happens with nautilus 3.14.2.
Comment 5 Balló György 2015-07-25 19:20:38 UTC
Still happens with nautilus 3.16.2.
Comment 6 Balló György 2015-07-26 15:17:21 UTC
Created attachment 308175 [details] [review]
[PATCH] Don't draw the desktop if another desktop manager in use

I created a patch that fixes the problem. Please apply it for master, gnome-3-16 and gnome-3-14 branches.
Comment 7 Carlos Soriano 2015-08-21 18:11:02 UTC
Tell me if it is not a duplicate and if it doesnt work for you. As said in the duplicated, use the --no-desktop if you want to override programatically.

*** This bug has been marked as a duplicate of bug 750528 ***
Comment 8 Balló György 2015-08-21 18:59:00 UTC
No, it doesn't work for me, it's a different problem.

Nautilus detects if another desktop manager is in use:
https://git.gnome.org/browse/nautilus/tree/src/nautilus-desktop-window.c#n135

But later, this detection is ignored, and Nautilus draw the desktop anyway. It's a regression introduced by this commit:
https://git.gnome.org/browse/nautilus/commit/?id=3eeda743a42fe10f0e31743c3fb2ba8907fc8883

This condition was respected in the old code:
https://git.gnome.org/browse/nautilus/tree/src/nautilus-application.c?id=89412e0439757547b384c7b802801d1221b28bb8#n463

But missing from the new code:
https://git.gnome.org/browse/nautilus/tree/src/nautilus-desktop-window.c#n189

My patch simply adds this condition back, and Nautilus respects it again.
Comment 9 Cosimo Cecchi 2015-08-23 04:58:17 UTC
Review of attachment 308175 [details] [review]:

This looks good to me, thanks for the patch!
Comment 10 Cosimo Cecchi 2015-08-24 15:42:41 UTC
Pushed to master.