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 579574 - Need nautilus run as a daemon for monitor media automount without any window
Need nautilus run as a daemon for monitor media automount without any window
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-20 05:51 UTC by jfding
Modified: 2009-05-25 12:17 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Suggestion patch for this feature (4.45 KB, patch)
2009-04-20 06:39 UTC, jfding
none Details | Review
latest patch (4.10 KB, patch)
2009-05-25 09:55 UTC, jfding
committed Details | Review

Description jfding 2009-04-20 05:51:31 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.
Comment 1 jfding 2009-04-20 06:39:34 UTC
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
Comment 2 jfding 2009-05-25 09:55:58 UTC
Created attachment 135304 [details] [review]
latest patch

Discarded command line option.
Renamed gconf-key to "exit_with_last_window"
Comment 3 jfding 2009-05-25 09:56:31 UTC
According the discussion in maillist. I rewrite the code and update the atteched patch here.
Comment 4 Cosimo Cecchi 2009-05-25 12:17:39 UTC
I see this has now been committed, closing.