Commit 930e1c13 authored by Jonas Smedegaard's avatar Jonas Smedegaard
Browse files

add patch 1001 to extract GSettings schema from code

parent d2f97151
Description: ship non-embedded GSettings schema
Embedding the GSettings schema complicates generating during build.
This patch replicates the embedded schema as standalone file
(partly reverting git commit ffdacaa).
.
Additionally, this patch sprinkles some indentation changes
to the embedded schema,
to ensure that if upstream changes the schema
then applying the patch will fail hard
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2020-04-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/browser.py
+++ b/browser.py
@@ -110,15 +110,13 @@
[
'<?xml version="1.0" encoding="UTF-8"?>',
'<schemalist>',
- '<schema id="org.laptop.WebActivity" '
- 'path="/org/laptop/WebActivity/">',
- '<key name="home-page" type="s">',
- "<default>''</default>",
- '<summary>Home page URL</summary>',
- '<description>URL to show as default or when home button '
- 'is pressed.</description>',
- '</key>',
- '</schema>',
+ ' <schema id="org.laptop.WebActivity" path="/org/laptop/WebActivity/">',
+ ' <key name="home-page" type="s">',
+ " <default>''</default>",
+ ' <summary>Home page URL</summary>',
+ ' <description>URL to show as default or when home button is pressed.</description>',
+ ' </key>',
+ ' </schema>',
'</schemalist>',
]
open(os.path.join(path, src), 'w').writelines(lines)
--- /dev/null
+++ b/org.laptop.WebActivity.gschema.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+ <schema id="org.laptop.WebActivity" path="/org/laptop/WebActivity/">
+ <key name="home-page" type="s">
+ <default>''</default>
+ <summary>Home page URL</summary>
+ <description>URL to show as default or when home buttin is pressed.</description>
+ </key>
+ </schema>
+</schemalist>
0xxx: Grabbed from upstream development.
1xxx: Possibly relevant for upstream adoption.
2xxx: Only relevant for official Debian release.
1001_un-embed_gsettings_schema.patch
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment