Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to figure out a way to set a flag on Nautilus for all/new users. It's just set always_use_browser to True. I didn't find any way to set it globally, just locally. I spent hours doing a workaround which uses gconftool-2, but to solve this issue, I think it could be more simple than applying and avoid resources usage to run my (dirty) solution.

Does Gnome have file/command to set this nautilus flag (always_use_browser=True) globally?

share|improve this question
    
Finally, I found a solution. gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ --type boolean --set /apps/nautilus/preferences/always_use_browser true –  manoelhc Jan 6 '12 at 18:00
add comment

1 Answer

  • Check whether you have 'always_use_browser' property supported in the files. /usr/share/nautilus/glade/nautilus-file-management-properties.glade.

  • Schema should be supporting it: /etc/gconf/schemas/apps_nautilus_preferences.schemas

Make sure you take a backup before editing any of these xml files.

  • Use gconftool-2

Open GConf Editor (GUI mode):

               (Menu > System > Configuration > Gnome > Advanced)

               Expand: Apps > Nautilus > Preferences

               Put A Check Next To "always_use_browser"

Or Alternatively from the command line mode (CLI):

[centos@centos glade]$ gconftool-2  -T --get /apps/nautilus/preferences/always_use_browser
false
bool

Set the value to true

[centos@centos glade]$ sudo gconftool-2 --type bool  --set /apps/nautilus/preferences/always_use_browser true
[centos@centos glade]$ sudo gconftool-2   --get /apps/nautilus/preferences/always_use_browser 
true
[centos@centos glade]$ 
share|improve this answer
    
Thank you very much Nikhil. I found a way to use gconftool-2 globally. The problem of modifying a Nautilus project file is the warrant of functioning, mainly after a nautilus update. –  manoelhc Jan 6 '12 at 18:16
    
@manoelhc You are welcome :-) –  Nikhil Mulley Jan 6 '12 at 18:25
    
I would suggest to execute this command on behalf of everyone since the already existing users's personal gconf db settings would overwrite the global settings. –  Nikhil Mulley Jan 6 '12 at 18:48
1  
You can look for other useful settings at library.gnome.org/admin/system-admin-guide/stable/… –  Nikhil Mulley Jan 6 '12 at 18:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.