1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Packaging help for GDM+GNOME Mageia background (long)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Packaging%20help%20for%20GDM%2BGNOME%20Mageia%20background%20%28long%29&In-Reply-To=%3C20120219121344.GA6073%40bkor.dhs.org%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="012120.html">
<LINK REL="Next" HREF="012217.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Packaging help for GDM+GNOME Mageia background (long)</H1>
<B>Olav Vitters</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Packaging%20help%20for%20GDM%2BGNOME%20Mageia%20background%20%28long%29&In-Reply-To=%3C20120219121344.GA6073%40bkor.dhs.org%3E"
TITLE="[Mageia-dev] Packaging help for GDM+GNOME Mageia background (long)">olav at vitters.nl
</A><BR>
<I>Sun Feb 19 13:13:44 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="012120.html">[Mageia-dev] [changelog] [RPM] cauldron core/release wmdrawer-0.10.5-12.mga2
</A></li>
<LI>Next message: <A HREF="012217.html">[Mageia-dev] Packaging help for GDM+GNOME Mageia background (long)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#12105">[ date ]</a>
<a href="thread.html#12105">[ thread ]</a>
<a href="subject.html#12105">[ subject ]</a>
<a href="author.html#12105">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I'm looking to theme GDM+GNOME with:
1: changing the default background
2: putting a Mageia logo above the GDM userlist
<A HREF="https://bugs.mageia.org/show_bug.cgi?id=4419">https://bugs.mageia.org/show_bug.cgi?id=4419</A>
This can be done by (1 and 2 match up with above):
1a. Making an XML file for the default Mageia background and placing that
into /usr/share/gnome-background-properties
XML such as:
<A HREF="http://git.gnome.org/browse/gnome-backgrounds/tree/backgrounds/gnome-backgrounds.xml.in.in">http://git.gnome.org/browse/gnome-backgrounds/tree/backgrounds/gnome-backgrounds.xml.in.in</A>
Note: this allows translation! Just going to call it Mageia and not
setup translation (due to simple reason that I do not know how).
1b. Creating an gschema.override file to change the default background.
gschema.override such as:
<A HREF="https://build.opensuse.org/package/view_file?file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=openSUSE%3AFactory&rev=e64e8406fad55bc7ec175dfcbe3d5c47">https://build.opensuse.org/package/view_file?file=glib2-branding.gschema.override.in&package=glib2-branding-openSUSE&project=openSUSE%3AFactory&rev=e64e8406fad55bc7ec175dfcbe3d5c47</A>
This needs to be compiled by glib-compile-schemas. I've ensured the
existing filetrigger also works for '.override' files as of
glib2.0-2.31.16-2.mga2
1c. Patching gnome-control-center to assume the default background
within /usr/share/gnome-background-properties is specified in
"mageia.xml" if it exists, else, "adwaita.xml".
Note: this is a hack, but unfortunately the default is not in
gsettings, so cannot nicely override.
2a. Creating an gschema.override file to the Mageia logo (as SVG):
<A HREF="http://pkgs.fedoraproject.org/gitweb/?p=gdm.git;a=blob;f=org.gnome.login-screen.gschema.override;hb=HEAD">http://pkgs.fedoraproject.org/gitweb/?p=gdm.git;a=blob;f=org.gnome.login-screen.gschema.override;hb=HEAD</A>
Now, IMO, this should be done in the Mageia theme package. This so:
- If you don't want these backgrounds, you can just remove them
- If Mageia wants different backgrounds for Live cd / DVD / special
release then it is just a matter of packaging them
- Don't have to put a Require: on some Mageia theme in
gdm/gnome-control-center, etc.
However, due to 1c, the background within the theme MUST have a file
called /usr/share/gnome-background-properties/mageia.xml. So the themes
will conflict with eachother. At the moment, it seems there only is one
theme package called mageia-theme-Default. I'm guessing it is ok if the
themes conflict, otherwise you do not know which one should give the
background.
To recap, I need to put the following files in some package:
- /usr/share/gnome-background-properties/mageia.xml
=> mageia-theme-Default ? who owns the directory then?
- <A HREF="http://www.mageia.org/g/media/logo/mageia-2011.svg">http://www.mageia.org/g/media/logo/mageia-2011.svg</A>
=> mageia-theme-Default or desktop-common-data ?
- /usr/share/glib-2.0/schemas/mageia-theme-Default.override
=> mageia-theme-Default and depend on glib2.0-common?
- (and patch gnome-control-center)
=> not sure if I can :P
Now, I know which files I need to package, but I have trouble with in
which package to put them without creating incorrect Requires.
If I package /usr/share/gnome-background-properties/mageia.xml, should I
depend on gnome-control-center (as the directory is part of
gnome-control-center), or not? Can I ignore this? Ignoring this would
allow me to just put it in mageia-theme-Default
For /usr/share/glib-2.0/schemas/mageia-theme-Default.override,
glib-compile-schemas needs to run. Should I depend on glib for the file
trigger. That seems a bit much for mageia-theme-Default. How to solve? I
noticed mageia-theme-kde-background, but that just gives one background.
It also doesn't have any dependencies on KDE, which seems a bit odd.
Note: I also see
/usr/share/gnome-background-properties/gnome-default.xml; it is NOT
used.
--
Regards,
Olav
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="012120.html">[Mageia-dev] [changelog] [RPM] cauldron core/release wmdrawer-0.10.5-12.mga2
</A></li>
<LI>Next message: <A HREF="012217.html">[Mageia-dev] Packaging help for GDM+GNOME Mageia background (long)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#12105">[ date ]</a>
<a href="thread.html#12105">[ thread ]</a>
<a href="subject.html#12105">[ subject ]</a>
<a href="author.html#12105">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|