FS#14110 - nautilus starts endlessly until system is unresponsive when show-desktop is disabled

Attached to Project: Arch Linux
Opened by (N/A) (wantilles) - Sunday, 05 April 2009, 17:04 GMT
Last edited by Jan de Groot (JGC) - Monday, 13 April 2009, 19:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:


Additional info:
* package version(s)

2.26.1-1

Steps to reproduce:

Go to gconf to /apps/nautilus/preferences.

Set the boolean entry show_desktop to FALSE (unchecked).

Nautilus will then attempt to restart endlessly, popping up dozens of windows saying "Starting File Manager", using a lot of CPU, and leading to an unresponsive system.

The bug is present in other bugzillas as well.

Gnome:

http://bugzilla.gnome.org/show_bug.cgi?id=571417

Fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=485375

Ubuntu:

https://bugs.launchpad.net/nautilus/+bug/325973

It has been fixed in Ubuntu.

Here is the equivalent Ubuntu source package:

https://launchpad.net/ubuntu/+source/nautilus/1:2.26.0-0ubuntu5

And the link to the patch:

http://launchpadlibrarian.net/24624059/nautilus_1%3A2.26.0-0ubuntu4_1%3A2.26.0-0ubuntu5.diff.gz

Here is the patch:

------------------------------------------------------
--- nautilus-2.26.0.orig/debian/patches/16_workaround_autorestart_issue.patch
+++ nautilus-2.26.0/debian/patches/16_workaround_autorestart_issue.patch
@@ -0,0 +1,33 @@
+Index: nautilus-2.26.0/nautilus.desktop.in
+===================================================================
+--- nautilus-2.26.0.orig/nautilus.desktop.in 2009-03-16 12:49:09.000000000 +0100
++++ nautilus-2.26.0/nautilus.desktop.in 2009-04-01 11:21:32.000000000 +0200
+@@ -14,5 +14,5 @@
+ X-GNOME-Bugzilla-Version=2.26.0
+ X-GNOME-Autostart-Phase=Desktop
+ X-GNOME-Autostart-Notify=true
+-X-GNOME-AutoRestart=true
++X-GNOME-AutoRestart=false
+ X-GNOME-Provides=filemanager
+Index: nautilus-2.26.0/nautilus.desktop
+===================================================================
+--- nautilus-2.26.0.orig/nautilus.desktop 2009-03-16 12:51:15.000000000 +0100
++++ nautilus-2.26.0/nautilus.desktop 2009-04-01 11:21:32.000000000 +0200
+@@ -110,5 +110,5 @@
+ X-GNOME-Bugzilla-Version=2.26.0
+ X-GNOME-Autostart-Phase=Desktop
+ X-GNOME-Autostart-Notify=true
+-X-GNOME-AutoRestart=true
++X-GNOME-AutoRestart=false
+ X-GNOME-Provides=filemanager
+Index: nautilus-2.26.0/nautilus.desktop.in.in
+===================================================================
+--- nautilus-2.26.0.orig/nautilus.desktop.in.in 2009-04-01 11:21:36.000000000 +0200
++++ nautilus-2.26.0/nautilus.desktop.in.in 2009-04-01 11:22:00.000000000 +0200
+@@ -14,5 +14,5 @@
+ X-GNOME-Bugzilla-Version=@VERSION@
+ X-GNOME-Autostart-Phase=Desktop
+ X-GNOME-Autostart-Notify=true
+-X-GNOME-AutoRestart=true
++X-GNOME-AutoRestart=false
+ X-GNOME-Provides=filemanager
------------------------------------------------------

I applied the changes and the bug is fixed.

So here is the patch I propose to fix this bug:

nautilus-no-show-desktop.patch

------------------------------------------------------
diff -Naur old/nautilus-2.26.1/nautilus.desktop new/nautilus-2.26.1/nautilus.desktop
--- old/nautilus-2.26.1/nautilus.desktop 2009-04-02 21:11:11.000000000 +0300
+++ new/nautilus-2.26.1/nautilus.desktop 2009-04-05 19:47:33.865321213 +0300
@@ -111,5 +111,5 @@
X-GNOME-Bugzilla-Version=2.26.1
X-GNOME-Autostart-Phase=Desktop
X-GNOME-Autostart-Notify=true
-X-GNOME-AutoRestart=true
+X-GNOME-AutoRestart=false
X-GNOME-Provides=filemanager
diff -Naur old/nautilus-2.26.1/nautilus.desktop.in new/nautilus-2.26.1/nautilus.desktop.in
--- old/nautilus-2.26.1/nautilus.desktop.in 2009-04-02 21:10:39.000000000 +0300
+++ new/nautilus-2.26.1/nautilus.desktop.in 2009-04-05 19:47:16.981983871 +0300
@@ -14,5 +14,5 @@
X-GNOME-Bugzilla-Version=2.26.1
X-GNOME-Autostart-Phase=Desktop
X-GNOME-Autostart-Notify=true
-X-GNOME-AutoRestart=true
+X-GNOME-AutoRestart=false
X-GNOME-Provides=filemanager
diff -Naur old/nautilus-2.26.1/nautilus.desktop.in.in new/nautilus-2.26.1/nautilus.desktop.in.in
--- old/nautilus-2.26.1/nautilus.desktop.in.in 2009-03-05 14:15:05.000000000 +0200
+++ new/nautilus-2.26.1/nautilus.desktop.in.in 2009-04-05 19:47:21.639066090 +0300
@@ -14,5 +14,5 @@
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Autostart-Phase=Desktop
X-GNOME-Autostart-Notify=true
-X-GNOME-AutoRestart=true
+X-GNOME-AutoRestart=false
X-GNOME-Provides=filemanager
------------------------------------------------------
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 13 April 2009, 19:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 2.26.2-1.
Comment by (N/A) (wantilles) - Sunday, 05 April 2009, 17:20 GMT
So here is the proposed PKGBUILD using the patch supplied above:

----------------------------------------------------------------------------------------
pkgname=nautilus
pkgver=2.26.1
pkgrel=2
pkgdesc="The GNOME shell and file manager"
arch=(i686 x86_64)
license=('GPL')
depends=('libbeagle>=0.3.5.1' 'libtracker>=0.6.6' 'libexif>=0.6.16' 'exempi>=2.1.0' 'gnome-icon-theme>=2.26.0' 'desktop-file-utils' 'gvfs>=1.2.1' 'libunique>=1.0.8' 'gnome-desktop>=2.26.0')
makedepends=('pkgconfig' 'intltool')
url="http://www.gnome.org"
groups=('gnome')
options=('!libtool' '!emptydirs')
install=nautilus.install
source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.26/${pkgname}-${pkgver}.tar.bz2
nautilus-no-show-desktop.patch)
md5sums=('5d75f5de2806e9003e36a4613866b8d1'
'48e883de704bdaac0bd1394efa52bfff')

build() {
cd "${srcdir}/${pkgname}-${pkgver}"

# Patch needed to operate Nautilus when the desktop is not drawn
patch -Np2 -i "${srcdir}/nautilus-no-show-desktop.patch" || return 1

./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --disable-static \
--disable-update-mimedb || return 1
make || return 1
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1

install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain nautilus ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}
----------------------------------------------------------------------------------------
Comment by Alex Matos (alexmatos) - Monday, 06 April 2009, 13:22 GMT
I can confirm this issue.
Comment by roan (roan) - Tuesday, 07 April 2009, 16:25 GMT
Yes, having the same problem too.
Comment by filippo colombo (ombra85) - Saturday, 11 April 2009, 15:49 GMT
Yes this bug exist now.
Comment by Chad Versace (chadversary) - Saturday, 11 April 2009, 16:28 GMT
Here is a quick fix that worked for me. May be useful to those too lazy to apply the patch.
Open gconf-editor
Navigate to /desktop/gnome/session/required_components
Set filemanager = nautilus --no-desktop
Comment by Alex Matos (alexmatos) - Saturday, 11 April 2009, 17:11 GMT
@Chad: Thanks! I don't know how I didn't think about this before, it's so simple!

Loading...