nemo-desktop does not show background on GNOME FlashBack session

Bug #1742193 reported by Norbert on 2018-01-09
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nemo (Ubuntu)

Bug Description

Steps to reproduce:
1. Install Ubuntu 18.04 LTS
2. Install `gnome-panel` and `nemo` packages
3. Disable nautilus-desktop with `gsettings set org.gnome.desktop.background show-desktop-icons false`
4. Remove `nautilus-desktop` with `sudo rm /usr/bin/nautilus-desktop`
5. Log-out and log-in back
6. Set `gsettings set org.nemo.desktop ignored-desktop-handlers "['conky','nemo','nemo-desktop','nautilus','nautilus-desktop']"` to prevent this warning

** (nemo-desktop:xxxx): WARNING **: Desktop already managed by another application, skipping desktop setup.
To change this, modify org.nemo.desktop 'ignored-desktop-handlers'.

7. Put some files to ~/Desktop folder with `touch ~/Desktop/x ~/Desktop/y`
8. Try to launch `nemo-desktop`

Expected results:
* nemo-desktop maintains desktop, its shortcuts and background

Actual results:
* nemo-desktop does not maintain desktop, its shortcuts but not background

(nemo-desktop:xxxx): Gtk-WARNING **: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client

(nemo-desktop:xxxx): Gtk-WARNING **: Allocating size to NemoWindowPane 0x55632786f3c0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nemo 3.4.7-1ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.8-0ubuntu6
Architecture: amd64
CurrentDesktop: GNOME-Flashback:GNOME
Date: Tue Jan 9 19:55:25 2018
InstallationDate: Installed on 2017-12-22 (17 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20171221)
SourcePackage: nemo
UpgradeStatus: No upgrade log present (probably fresh install)

Norbert (nrbrtx) wrote :
Norbert (nrbrtx) on 2018-01-09
summary: - nemo-desktop does not work on GNOME FlashBack session
+ nemo-desktop does not show background on GNOME FlashBack session
description: updated
description: updated
description: updated
Norbert (nrbrtx) on 2018-01-09
description: updated
Khurshid Alam (khurshid-alam) wrote :

Flashback also uses gnome-settings-daemon. May be that's why it can't work. What happens when you restart gnome-settings daemon?

Norbert (nrbrtx) wrote :

Without killing `nautilus-desktop` and after launching `nemo-desktop` both them control desktop - I have two sets if icons with background.

I think that main problem is that GNOME FlashBack ignores `gsettings set org.gnome.desktop.background show-desktop-icons false`. Setting this option does not remove icons from desktop.

`nautilus-desktop` is auto-launched with `nautilus-desktop --force` which means "Always manage the desktop (ignore the GSettings preference)."
It seems to be launched from `/usr/share/applications/nautilus-classic.desktop` file.

Hacking this file by replacing `nautilus-desktop --force` to `nemo-desktop` with
`sudo sed -i 's/nautilus-desktop --force/nemo-desktop/g' /usr/share/applications/nautilus-classic.desktop`
helps, but still there is no wallpaper.

gsettings set org.gnome.gnome-flashback desktop-background true

It is disabled on Ubuntu because nautilus in Ubuntu was still drawing background. If nemo-desktop does not draw background image you need to enable it.

Norbert (nrbrtx) wrote :

Here is complete and working solution. `nemo-desktop` is fully-functional on Ubuntu("Unity") and GNOME FlashBack session:

# for GNOME FlashBack session
sudo apt-get install nemo gnome-panel -y

sudo rm /usr/bin/nautilus-desktop
sudo sed -i 's/nautilus-desktop --force/nemo-desktop/g' /usr/share/applications/nautilus-classic.desktop

gsettings set org.nemo.desktop ignored-desktop-handlers "['conky','nemo','nemo-desktop']"
touch ~/Desktop/x ~/Desktop/y

gsettings set org.gnome.gnome-flashback desktop-background true

# for Ubuntu session "Unity"
cat << EOF > ~/.config/autostart/nemo-desktop.desktop
[Desktop Entry]

Hope this helps somebody.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nemo (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers