Skip to content

Commit 92d3298

Browse files
authored
Update debian packaging and fix new schema (#66)
- Update compatibilty to 13 - Fix lintian - Fix key in gschema file - rename gschema in sources
1 parent e46c4c3 commit 92d3298

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

data/org.mamolinux.theme-manager.gschema.xml.in

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<schemalist>
33
<schema id="org.mamolinux.theme-manager" path="/org/mamolinux/theme-manager/">
44
<child name="theme-settings" schema="org.mamolinux.theme-manager.ThemeSettings"/>
5-
<child name="time-settings" schema="org.mamolinux.theme-manager.TimeSettings"/>
65
</schema>
7-
<schema id="org.mamolinux.theme-manager.ThemeSettings" path="/org/mamolinux/theme-manager/theme-settings">
6+
<schema id="org.mamolinux.theme-manager.ThemeSettings" path="/org/mamolinux/theme-manager/theme-settings/">
87
<key name="last-changed" type="i">
98
<default>0</default>
109
<summary>Theme update time</summary>

debian/control

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ Source: theme-manager
22
Section: utils
33
Priority: optional
44
Maintainer: Himadri Sekhar Basu <[email protected]>
5-
Build-Depends: debhelper-compat (= 11),
5+
Build-Depends: debhelper-compat (= 13),
66
dh-python,
7-
python3-gi,
87
python3-setuptools,
98
python3-sphinx,
109
python3-all
@@ -20,6 +19,7 @@ Architecture: all
2019
Depends: gobject-introspection,
2120
gir1.2-gtk-3.0,
2221
gir1.2-appindicator3-0.1,
22+
python3:any,
2323
python3-configobj,
2424
python3-gi,
2525
python3-setproctitle,

debian/rules

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export PYBUILD_NAME=theme-manager
77
export PYBUILD_INSTALL_ARGS_python3=--install-scripts=usr/bin
88

99
%:
10-
dh ${@} --with python3 --buildsystem=pybuild
10+
dh ${@} --buildsystem=pybuild
1111

1212
# If you need to rebuild the Sphinx documentation
1313
# Add sphinxdoc to the dh --with line
@@ -24,8 +24,9 @@ export PYBUILD_INSTALL_ARGS_python3=--install-scripts=usr/bin
2424

2525
override_dh_install:
2626
dh_install
27+
rm -rf debian/theme-manager/usr/lib/python3.10/dist-packages/ThemeManager/__pycache__
2728
install -D -m 0644 debian/theme-manager.1 debian/theme-manager/usr/share/man/man1/theme-manager.1
28-
install -D -m 0644 data/org.x.theme-manager.gschema.xml.in debian/theme-manager/usr/share/glib-2.0/schemas/org.x.theme-manager.gschema.xml
29+
install -D -m 0644 data/org.mamolinux.theme-manager.gschema.xml.in debian/theme-manager/usr/share/glib-2.0/schemas/org.mamolinux.theme-manager.gschema.xml
2930
install -D -m 0644 data/theme-manager-autostart.desktop.in debian/theme-manager/etc/xdg/autostart/theme-manager-autostart.desktop
3031

3132
override_dh_auto_install:

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ domain=theme-manager
4242
desktop_files=[("share/applications", ("data/theme-manager*.desktop.in",
4343
))]
4444
schemas_files=[("share/glib-2.0/schemas",
45-
("data/org.x.theme-manager.gschema.xml.in",))
45+
("data/org.mamolinux.theme-manager.gschema.xml.in",))
4646
]

src/ThemeManager/gui.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ThemeManagerWindow():
7777
def __init__(self, application):
7878

7979
self.application = application
80-
self.settings = Gio.Settings(schema_id="org.x.theme-manager")
80+
self.settings = Gio.Settings(schema_id="org.mamolinux.theme-manager")
8181
self.manager = TMBackend()
8282
self.destop_manager = desktop_theme()
8383
self.icon_theme = Gtk.IconTheme.get_default()

0 commit comments

Comments
 (0)