[gnome-sound-recorder] gsettings: set the same id as the app one
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] gsettings: set the same id as the app one
- Date: Sun, 3 Feb 2019 21:53:56 +0000 (UTC)
commit d43910864b7ce30c1e905e4bca1bfe6516d531b8
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Fri Jan 11 15:36:12 2019 +0100
gsettings: set the same id as the app one
this will allow us later to have dual installation with difference app-id's
data/meson.build | 5 +++--
...d-recorder.gschema.xml => org.gnome.SoundRecorder.gschema.xml.in} | 2 +-
src/application.js | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 5894af8..d5d4c4e 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -32,9 +32,10 @@ endif
gsettings_conf = configuration_data()
gsettings_conf.set('GETTEXT_PACKAGE', meson.project_name ())
+gsettings_conf.set('APP_ID', application_id)
configure_file(
- input: 'org.gnome.gnome-sound-recorder.gschema.xml',
- output: 'org.gnome.gnound-sound-recorder.gschema.xml',
+ input: '@0 gschema xml in'.format(application_id),
+ output: '@0 gschema xml'.format(application_id),
configuration: gsettings_conf,
install: true,
install_dir: sound_recorder_schemadir
diff --git a/data/org.gnome.gnome-sound-recorder.gschema.xml b/data/org.gnome.SoundRecorder.gschema.xml.in
similarity index 91%
rename from data/org.gnome.gnome-sound-recorder.gschema.xml
rename to data/org.gnome.SoundRecorder.gschema.xml.in
index a9388be..921de54 100644
--- a/data/org.gnome.gnome-sound-recorder.gschema.xml
+++ b/data/org.gnome.SoundRecorder.gschema.xml.in
@@ -1,5 +1,5 @@
<schemalist>
- <schema id="org.gnome.gnome-sound-recorder" path="/org/gnome/gnome-sound-recorder/"
gettext-domain="gnome-sound-recorder">
+ <schema id="@APP_ID@" path="/org/gnome/SoundRecorder/" gettext-domain="@GETTEXT_PACKAGE@">
<key name="window-size" type="ai">
<default>[780, 480]</default>
<summary>Window size</summary>
diff --git a/src/application.js b/src/application.js
index e3858fc..ea1e20f 100644
--- a/src/application.js
+++ b/src/application.js
@@ -75,7 +75,7 @@ var Application = new Lang.Class({
Gst.init(null);
this._initAppMenu();
application = this;
- settings = new Gio.Settings({ schema: 'org.gnome.gnome-sound-recorder' });
+ settings = new Gio.Settings({ schema: 'org.gnome.SoundRecorder' });
this.ensure_directory();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]