[gsettings-desktop-schemas] media-handling: add new schemas taken from nautilus
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas] media-handling: add new schemas taken from nautilus
- Date: Mon, 29 Nov 2010 19:12:49 +0000 (UTC)
commit 5fb957c6b500fa3bb1c7c646fcb427b9a8a6b03f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 29 19:02:35 2010 +0100
media-handling: add new schemas taken from nautilus
schemas/Makefile.am | 3 +-
schemas/gsettings-desktop-schemas.convert | 9 +++++
...org.gnome.desktop.media-handling.gschema.xml.in | 34 ++++++++++++++++++++
3 files changed, 45 insertions(+), 1 deletions(-)
---
diff --git a/schemas/Makefile.am b/schemas/Makefile.am
index b5df2cf..d9b3bed 100644
--- a/schemas/Makefile.am
+++ b/schemas/Makefile.am
@@ -10,7 +10,8 @@ desktop_gschemas = \
org.gnome.desktop.a11y.mouse.gschema.xml
desktop_gschemas_in = \
- org.gnome.desktop.background.gschema.xml.in
+ org.gnome.desktop.background.gschema.xml.in \
+ org.gnome.desktop.media-handling.gschema.xml.in
desktop_gschemas_in_processed = $(desktop_gschemas_in:.gschema.xml.in=.gschema.xml)
diff --git a/schemas/gsettings-desktop-schemas.convert b/schemas/gsettings-desktop-schemas.convert
index 9a5cf89..1de8cbf 100644
--- a/schemas/gsettings-desktop-schemas.convert
+++ b/schemas/gsettings-desktop-schemas.convert
@@ -9,6 +9,15 @@ secondary-color = /desktop/gnome/background/secondary_color
color-shading-type = /desktop/gnome/background/color_shading_type
show-desktop-icons = /apps/nautilus/preferences/show_desktop
+# From org.gnome.desktop-media-handling.gschema.xml.in
+[org.gnome.desktop.media-handling]
+automount = /apps/nautilus/preferences/media_automount
+automount-open = /apps/nautilus/preferences/media_automount_open
+autorun-never = /apps/nautilus/preferences/media_autorun_never
+autorun-x-content-start-app = /apps/nautilus/preferences/media_autorun_x_content_start_app
+autorun-x-content-ignore = /apps/nautilus/preferences/media_autorun_x_content_ignore
+autorun-x-content-open-folder = /apps/nautilus/preferences/media_autorun_x_content_open_folder
+
# From org.gnome.desktop.default-applications.gschema.xml
[org.gnome.desktop.default-applications.at.mobility]
exec = /desktop/gnome/applications/at/mobility/exec
diff --git a/schemas/org.gnome.desktop.media-handling.gschema.xml.in b/schemas/org.gnome.desktop.media-handling.gschema.xml.in
new file mode 100644
index 0000000..e489d75
--- /dev/null
+++ b/schemas/org.gnome.desktop.media-handling.gschema.xml.in
@@ -0,0 +1,34 @@
+<schemalist gettext-domain="gsettings-desktop-schemas">
+ <schema id="org.gnome.desktop.media-handling" path="/desktop/gnome/media-handling/">
+ <key name="automount" type="b">
+ <default>true</default>
+ <summary>Whether to automatically mount media</summary>
+ <description>If set to true, then Nautilus will automatically mount media such as user-visible hard disks and removable media on start-up and media insertion.</description>
+ </key>
+ <key name="automount-open" type="b">
+ <default>true</default>
+ <summary>Whether to automatically open a folder for automounted media</summary>
+ <description>If set to true, then Nautilus will automatically open a folder when media is automounted. This only applies to media where no known x-content/* type was detected; for media where a known x-content type is detected, the user configurable action will be taken instead.</description>
+ </key>
+ <key name="autorun-never" type="b">
+ <default>false</default>
+ <summary>Never prompt or autorun/autostart programs when media are inserted</summary>
+ <description>If set to true, then Nautilus will never prompt nor autorun/autostart programs when a medium is inserted.</description>
+ </key>
+ <key name="autorun-x-content-start-app" type="as">
+ <default>[ 'x-content/software' ]</default>
+ <summary>List of x-content/* types where the preferred application will be launched</summary>
+ <description>List of x-content/* types for which the user have chosen to start an application in the preference capplet. The preferred application for the given type will be started on insertion on media matching these types.</description>
+ </key>
+ <key name="autorun-x-content-ignore" type="as">
+ <default>[]</default>
+ <summary>List of x-content/* types set to "Do Nothing"</summary>
+ <description>List of x-content/* types for which the user have chosen "Do Nothing" in the preference capplet. No prompt will be shown nor will any matching application be started on insertion of media matching these types.</description>
+ </key>
+ <key name="autorun-x-content-open-folder" type="as">
+ <default>[]</default>
+ <summary>List of x-content/* types set to "Open Folder"</summary>
+ <description>List of x-content/* types for which the user have chosen "Open Folder" in the preferences capplet. A folder window will be opened on insertion of media matching these types.</description>
+ </key>
+ </schema>
+</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]