GNOME Bugzilla – Bug 579574
Need nautilus run as a daemon for monitor media automount without any window
Last modified: 2009-05-25 12:17:39 UTC
Need nautilus run as a daemon for monitor media automount without any window. Currently, user cannot run nautilus with both --no-desktop and --no-default-window, but sometime we need this option combination.
Created attachment 132943 [details] [review] Suggestion patch for this feature This patch is tested in my local buildings. It includes two major modification: 1. add one new cmd line option: --daemon, which can be used in first startup, to enable nautilus run as a daemon without any window 2. add one new gconf key: apps/nautilus/preferences/daemon_enable, to enable nautilus to run with both '--no-desktop' and '--no-default-window' without quit instantly. In another word, 'nautilus --daemon' is mostly equal 'nautilus --no-desktop --no-default-window' with gconf/daemon_enabel being TRUE. The following cases are tested: 1. case: before any nautilus instance exist, start nautilus with '--daemon' expect: run in background without any window 2. case: before any nautilus instance exist, start nautilus with '--no-desktop --no-default-window', with gconf/preferences/daemon_enable being TRUE expect: run in background without any window 3. case: after nautilus run with daemon mode, run 'nautilus --quit' expect: all nautilus windows and daemon should be killed 4. case: after nautilus run with daemon mode (with automount preference TRUE), plugin usb storage device expect: a file explorer window popup and show the content of usb storage 5. case: with nautilus running with any mode, start nautilus with any acceptable options expect: nautilus should not create new instance, send request msg to exist instance and quit
Created attachment 135304 [details] [review] latest patch Discarded command line option. Renamed gconf-key to "exit_with_last_window"
According the discussion in maillist. I rewrite the code and update the atteched patch here.
I see this has now been committed, closing.