Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Configurer Gnome par gconftool
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
bouleetbil
Guru
Guru


Joined: 06 Jul 2004
Posts: 456
Location: Montpellier

PostPosted: Tue Mar 20, 2007 2:53 pm    Post subject: [TIP] Configurer Gnome par gconftool Reply with quote

Bonjour,
Je cherchais à sauvegarder ma configuration de gnome et la réstaurer rapidement sans copier/coller les répertoires ~/.gconf ....

Alors voila un petit script qui permet de configurer gnome via gconftool :
Code:

#!/bin/sh

#fichiers cachés
gconftool-2 \
-s "/desktop/gnome/file_views/show_hidden_files" \
True -t boolean

#fichier de sauvegarde
gconftool-2 \
-s "/desktop/gnome/file_views/show_backup_files" \
True -t boolean

#vue pour nautilus
gconftool-2 \
-s "/apps/nautilus/preferences/always_use_browser" \
True -t boolean

#wallepaper
gconftool-2 -s "/desktop/gnome/background/picture_filename" \
"/usr/share/pixmaps/backgrounds/Tux.jpg" -t string

#disposition fond ecran
gconftool-2 -s "/desktop/gnome/background/picture_options" \
"stretched" -t string

#icone par défaut
gconftool-2 -s "/desktop/gnome/interface/icon_theme" \
"AquiGnome" -t string

#theme par défaut
gconftool-2 -s "/desktop/gnome/interface/gtk_theme" \
"RPanther2" -t string

#bordure par défaut
gconftool-2 -s "/apps/metacity/general/theme" \
"RPanther2" -t string

#transparence gnome-terminal
gconftool-2 -s "/apps/gnome-terminal/profiles/Default/background_type" \
"transparent" -t string

#sons système
gconftool-2 -s "/desktop/gnome/sound/enable_esd" \
True -t boolean
gconftool-2 -s "/desktop/gnome/sound/event_sounds" \
True -t boolean

#pas de corbeille sur le bureau
gconftool-2 -s "/apps/nautilus/desktop/trash_icon_visible" \
False -t boolean





Syntaxe :

gconftool-2 -s "Clé à modifier" "La valeur" -t "Le type"

Pour voir votre configuration il suffit de regarder le répertoire ~/.gconf. Chaque sous répertoire correspond à une clé de gconf
_________________
L'homme n'est pas fait pour travailler ça le fatigue.
LiveCD Gentoo : http://www.frogdev.info
Gentoo/Freebsd : http://www.frogdev.info/gentoo_freebsd.php
Back to top
View user's profile Send private message
Nah
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 107
Location: Lille,France

PostPosted: Tue Mar 20, 2007 3:06 pm    Post subject: Reply with quote

Toujour faire une sauvegarde au cas ou, comme ça c'est plus rapide à restaurer. :)
Code:
# Backup
gconftool-2 --dump / > $HOME/backup_gconf.xml

# Restauration
gconftool-2 --load=$HOME/backup_gconf.xml
Back to top
View user's profile Send private message
bouleetbil
Guru
Guru


Joined: 06 Jul 2004
Posts: 456
Location: Montpellier

PostPosted: Tue Mar 20, 2007 3:53 pm    Post subject: Reply with quote

Connaissais pas
C'est plus rapide :lol:
_________________
L'homme n'est pas fait pour travailler ça le fatigue.
LiveCD Gentoo : http://www.frogdev.info
Gentoo/Freebsd : http://www.frogdev.info/gentoo_freebsd.php
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum