Merge lp:~lool/netbook-remix-launcher/lp-403556 into lp:netbook-remix-launcher

Proposed by Loïc Minier
Status: Merged
Merged at revision: not available
Proposed branch: lp:~lool/netbook-remix-launcher/lp-403556
Merge into: lp:netbook-remix-launcher
Diff against target: None lines
To merge this branch: bzr merge lp:~lool/netbook-remix-launcher/lp-403556
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Approve
Review via email: mp+9695@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Loïc Minier (lool) wrote :

Proposed change is to honour the nautilus GConf preference for not doing any automounting. IMO the UNR upstream team might be wanting to double check what other mechanisms they want to copy from Nautilus or whether we should be using an entirely different key. In the latter case, ubiquity needs to be changed to also set the new key.

Will chat with njpatel about this tomorrow.

NB: Sorry didn't test or test-build these rebased changes due to lazyness in getting the bdeps to build tip.

Revision history for this message
Neil J. Patel (njpatel) wrote :

Looks good, definitely want to stick to nautilus's setting. I've merged and tested and it seems to work fine, the only difference was I added a g_object_unref (client) to the end of the function to free the GConfClient.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/nl-volumes-source.c'
2--- src/nl-volumes-source.c 2009-08-04 10:09:59 +0000
3+++ src/nl-volumes-source.c 2009-08-05 14:33:43 +0000
4@@ -621,6 +621,8 @@
5 {
6 GMount *mount;
7 ClutterActor *tile;
8+ GConfClient *client = gconf_client_get_default ();
9+ gboolean nautilus_prefs_media_autorun_never;
10
11 g_return_val_if_fail (G_IS_VOLUME (volume), FALSE);
12
13@@ -632,10 +634,15 @@
14 }
15
16 mount = g_volume_get_mount (volume);
17+
18+ nautilus_prefs_media_autorun_never = gconf_client_get_bool (client,
19+ "/apps/nautilus/preferences/media_autorun_never",
20+ NULL);
21
22 if (!G_IS_MOUNT (mount)
23 && !is_running ("gnome-volume-manager")
24- && !is_running ("nautilus"))
25+ && !is_running ("nautilus")
26+ && !nautilus_prefs_media_autorun_never)
27 {
28 g_debug ("Automounting volume");
29 on_volume_clicked (tile, volume);

Subscribers

People subscribed via source and target branches