Preventing auto-restart of nautilus on gnome 2.28

0

Cheers!

I dislike disobedience from my system. When I want to explicitly kill Nautilus with kill or killall, I am no longer able to do so. Previously I could disable this erroneous behavior (which even Windows do not exhibit!) through gnome-session-properties, however, it is no longer possible to set the "restart style" there (or whatever it was called).

What is nowadays the correct way to disable nautilus autorestart under gnome?


Reasons:

  • I'm writing a piece of software that's painting directly into X11 root window. Nautilus is interfering.
  • Compiz has a wallpapers plugin which Nautilus is painting over.

Ivan Vučica

Posted 2009-11-19T16:20:26.053

Reputation: 885

1Why do you wanna kill Nautilus at all? – Bobby – 2009-11-19T16:22:39.807

Answers

2

Yes, this annoys me, too.

What's happening in my case with xfce is that Nautilus is automatically registering with the session manager and telling the session manager to restart Nautilus when it terminates. You can prevent it from doing this by using the following undocumented command-line option:

nautilus --sm-disable

(There is no ~/.config/autostart entry.)

However I still haven't yet found how to make it behave like a normal application and terminate when its last window closes.

In addition you can prevent Nautilus from managing the desktop by changing the /apps/nautilus/preferences/show_desktop registry key.

David Given

Posted 2009-11-19T16:20:26.053

Reputation: 593

1

For me the file in ~/.config/autostart/ did not help, the one in /usr/share/applications does, so...

in total do:

gconftool-2 -s -t bool /desktop/gnome/background/draw_background false
gconftool-2 -s -t bool /apps/nautilus/preferences/show_desktop false

and

sudo gedit /usr/share/applications/nautilus.desktop

change to:

X-GNOME-AutoRestart=false

(found here)

O...

Posted 2009-11-19T16:20:26.053

Reputation: 11

1

Edit the appropriate file in ~/.config/autostart/ and change: X-GNOME-AutoRestart=true to: X-GNOME-AutoRestart=false

If you want to stop something like Nautilus, I suspect you may be able to override system defaults by copying the nautilus .desktop file to that folder, or else you'll have to edit the system file.

http://live.gnome.org/SessionManagement/GnomeSession#A8._Termination

Jacob Godserv

Posted 2009-11-19T16:20:26.053

Reputation:

This sounds about right, I'll try it and let you know. – Ivan Vučica – 2009-12-12T11:27:37.180