Merge lp:dash-privacy-interface into lp:~cm-t/dash-privacy-interface/quickly_trunk
- dash-privacy-interface
- Merge into quickly_trunk
Proposed by
Kanor
Status: | Merged |
---|---|
Approved by: | cm-t 🦄🏂🌈🎵 |
Approved revision: | 6 |
Merged at revision: | 9 |
Proposed branch: | lp:dash-privacy-interface |
Merge into: | lp:~cm-t/dash-privacy-interface/quickly_trunk |
Diff against target: |
450 lines (+137/-155) 9 files modified
build/share/applications/dash-privacy-interface.desktop (+0/-8) dash_privacy_interface/DashPrivacyInterfaceWindow.py (+31/-26) data/dash-privacy-interface.desktop (+8/-0) data/legalnotice/searchingthedashlegalnotice_fr.html (+67/-0) data/ui/DashPrivacyInterfaceWindow.ui (+2/-1) debian/changelog (+2/-98) debian/copyright (+1/-0) po/dash-privacy-interface.pot (+5/-10) setup.py (+21/-12) |
To merge this branch: | bzr merge lp:dash-privacy-interface |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
cm-t 🦄🏂🌈🎵 | Pending | ||
Review via email: mp+130697@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
lp:dash-privacy-interface
updated
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed file 'bin/dash-privacy-interfacec' |
2 | Binary files bin/dash-privacy-interfacec 2012-10-20 07:41:01 +0000 and bin/dash-privacy-interfacec 1970-01-01 00:00:00 +0000 differ |
3 | === removed directory 'build' |
4 | === removed directory 'build/share' |
5 | === removed directory 'build/share/applications' |
6 | === removed file 'build/share/applications/dash-privacy-interface.desktop' |
7 | --- build/share/applications/dash-privacy-interface.desktop 2012-10-20 07:54:32 +0000 |
8 | +++ build/share/applications/dash-privacy-interface.desktop 1970-01-01 00:00:00 +0000 |
9 | @@ -1,8 +0,0 @@ |
10 | -[Desktop Entry] |
11 | -Name=Dash Privacy Interface |
12 | -Comment=DashPrivacyInterface application |
13 | -Categories=GNOME;Utility; |
14 | -Exec=dash-privacy-interface |
15 | -Icon=dash-privacy-interface |
16 | -Terminal=false |
17 | -Type=Application |
18 | |
19 | === modified file 'dash_privacy_interface/DashPrivacyInterfaceWindow.py' |
20 | --- dash_privacy_interface/DashPrivacyInterfaceWindow.py 2012-10-20 07:41:01 +0000 |
21 | +++ dash_privacy_interface/DashPrivacyInterfaceWindow.py 2012-10-22 16:50:24 +0000 |
22 | @@ -1,44 +1,53 @@ |
23 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
24 | ### BEGIN LICENSE |
25 | -# Copyright (C) |
26 | -# ubuntu-fr <LoCo Team> |
27 | +# Copyright (C) |
28 | +# ubuntu-fr <LoCo Team> |
29 | # kanor <Romain DUBREIL> <contact@kanor.fr> |
30 | # cm-t <Rudy ANDRÉ> <arudy@ubuntu-fr.org> |
31 | # olive <Olivier FRAYSSE> <olive@picapo.org> |
32 | # quesh <Frédéric MANDE> <quesh@quesh.fr> |
33 | -# This program is free software: you can redistribute it and/or modify it |
34 | -# under the terms of the GNU General Public License version 3, as published |
35 | +# This program is free software: you can redistribute it and/or modify it |
36 | +# under the terms of the GNU General Public License version 3, as published |
37 | # by the Free Software Foundation. |
38 | -# |
39 | -# This program is distributed in the hope that it will be useful, but |
40 | -# WITHOUT ANY WARRANTY; without even the implied warranties of |
41 | -# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
42 | +# |
43 | +# This program is distributed in the hope that it will be useful, but |
44 | +# WITHOUT ANY WARRANTY; without even the implied warranties of |
45 | +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
46 | # PURPOSE. See the GNU General Public License for more details. |
47 | -# |
48 | -# You should have received a copy of the GNU General Public License along |
49 | +# |
50 | +# You should have received a copy of the GNU General Public License along |
51 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
52 | ### END LICENSE |
53 | |
54 | from locale import gettext as _ |
55 | +import locale |
56 | import os |
57 | from gi.repository import Gio, Gtk # pylint: disable=E0611 |
58 | import logging |
59 | logger = logging.getLogger('dash_privacy_interface') |
60 | |
61 | from dash_privacy_interface_lib import Window |
62 | -from dash_privacy_interface.AboutDashPrivacyInterfaceDialog import AboutDashPrivacyInterfaceDialog |
63 | -from dash_privacy_interface.PreferencesDashPrivacyInterfaceDialog import PreferencesDashPrivacyInterfaceDialog |
64 | |
65 | # See dash_privacy_interface_lib.Window.py for more details about how this class works |
66 | class DashPrivacyInterfaceWindow(Window): |
67 | __gtype_name__ = "DashPrivacyInterfaceWindow" |
68 | - |
69 | + |
70 | def finish_initializing(self, builder): # pylint: disable=E1002 |
71 | """Set up the main window""" |
72 | super(DashPrivacyInterfaceWindow, self).finish_initializing(builder) |
73 | - |
74 | - #self.AboutDialog = AboutDashPrivacyInterfaceDialog |
75 | - #self.PreferencesDialog = PreferencesDashPrivacyInterfaceDialog |
76 | + #Add url to read legal notice with local language |
77 | + btn_label = builder.get_object("lbl_do_later_descrp") |
78 | + text_label = btn_label.get_label() |
79 | + language = locale.getdefaultlocale()[0].split('_')[0] |
80 | + lien = "/usr/share/unity/6/searchingthedashlegalnotice%s.html" |
81 | + lien_locale = lien % ( "_%s" % language) |
82 | + if os.path.exists(lien_locale) and language != 'en': |
83 | + lien = lien_locale |
84 | + else: |
85 | + lien = lien % "" |
86 | + lien = "file:" + lien |
87 | + text_label = text_label % {'url': lien} |
88 | + btn_label.set_label(text_label) |
89 | |
90 | # Code for other initialization actions should be added here. |
91 | settings = Gtk.Settings.get_default() |
92 | @@ -61,16 +70,12 @@ |
93 | self.quit_after_choice() |
94 | |
95 | def quit_after_choice(self): |
96 | - self.set_has_been_displayed() |
97 | - self.disable_auto_start() |
98 | + self.disable_auto_start() |
99 | Gtk.main_quit() |
100 | - |
101 | - def set_has_been_displayed(self): |
102 | - cookiFile = os.path.expanduser("~/config/.dash-privacy-interface/screen_seen") |
103 | - if os.path.exists(cookiFile): |
104 | - with open(cookiFile, 'w') as f: |
105 | - f.write(_("The file was created after the current user has manualy chosen his dash privacy search result setting (online and local or local only). \n For more information: https://launchpad.net/dash-privacy-interface ")) |
106 | + |
107 | |
108 | def disable_auto_start(self): |
109 | - return |
110 | - |
111 | + desktopFile = os.path.expanduser("~/.config/autostart/dash-privacy-interface.desktop") |
112 | + if os.path.exists(desktopFile): |
113 | + os.remove(desktopFile) |
114 | + |
115 | |
116 | === added file 'data/dash-privacy-interface.desktop' |
117 | --- data/dash-privacy-interface.desktop 1970-01-01 00:00:00 +0000 |
118 | +++ data/dash-privacy-interface.desktop 2012-10-22 16:50:24 +0000 |
119 | @@ -0,0 +1,8 @@ |
120 | +[Desktop Entry] |
121 | +Name=Dash Privacy Interface |
122 | +Comment=DashPrivacyInterface application |
123 | +Categories=GNOME;Utility; |
124 | +Exec=dash-privacy-interface |
125 | +Icon=dash-privacy-interface |
126 | +Terminal=false |
127 | +Type=Application |
128 | |
129 | === added directory 'data/legalnotice' |
130 | === added file 'data/legalnotice/searchingthedashlegalnotice_fr.html' |
131 | --- data/legalnotice/searchingthedashlegalnotice_fr.html 1970-01-01 00:00:00 +0000 |
132 | +++ data/legalnotice/searchingthedashlegalnotice_fr.html 2012-10-22 16:50:24 +0000 |
133 | @@ -0,0 +1,67 @@ |
134 | +<html><head><title>Recherche dans le tableau de bord, mentions légales.</title> |
135 | +<meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
136 | +<style type="text/css"> |
137 | +body {font-family:Ubuntu; font-size:9pt;padding:50pt} |
138 | +h1{font-size:11pt;font-weight:bold;text-align:center;padding:10pt} |
139 | +h2{font-size:11pt;font-weight:bold;} |
140 | +</style> |
141 | +</head> |
142 | +<body> |
143 | +<h1>Recherche dans le tableau de bord - Mentions légales<br>Traduction non-officielle datée du 20 octobre 2012</h1> |
144 | +<p><a href="file:///usr/share/unity/6/searchingthedashlegalnotice.html">Consultez la version originale (en anglais).</a></p> |
145 | + |
146 | +<p>Cette fonction de recherche est fournie par la société Canonical |
147 | +Group Limited (Canonical). Cette notice légale s'applique à la fonction |
148 | +de recherche et inclue les |
149 | +<a href="http://www.canonical.com/legal">mentions légales</a> et la politique de respect de la vie privée, de Canonical.</p> |
150 | + |
151 | +<h2>Collecte et usage des données</h2> |
152 | +<p>Quand vous entrez une recherche dans le dash, Ubuntu cherchera sur votre ordinateur et enregistrera cette recherche localement.</p> |
153 | + |
154 | +<p>À moins que vous ayez désactivé cette option, (voir la section |
155 | +« Recherche en ligne » ci-dessous), nous enverrons aussi vos |
156 | +frappes de clavier en tant que recherches à productsearch.ubuntu.com et à |
157 | + des tiers sélectionnés afin de pouvoir compléter vos recherches par des |
158 | + résultats de recherches en ligne de tierces parties telles que : |
159 | +Facebook, Twitter, BBC et Amazon. Canonical et ces tiers sélectionnés |
160 | +collecteront vos recherches et les utiliseront pour vous fournir des |
161 | +résultats de recherche durant votre utilisation d'Ubuntu.</p> |
162 | +<p>En effectuant des recherches dans le tableau de bord, vous acceptez :</p> |
163 | + |
164 | +<ul> |
165 | +<li>la collecte et l'utilisation de vos recherches et de votre adresse IP de cette façon, et</li> |
166 | +<li>le stockage de vos recherches et adresses IP par Canonical et ces tierces parties (si applicable).</li> |
167 | +</ul> |
168 | + |
169 | +<p>Canonical n'utilisera ces recherches et adresses IP qu'en accord avec ces mentions légales et |
170 | +<a href="http://www.ubuntu.com/aboutus/privacypolicy">notre politique de respect de la vie privée</a>. Veuillez consulter <a href="http://www.ubuntu.com/aboutus/privacypolicy">notre politique de respect de la vie privée</a> |
171 | + pour toute information complémentaire sur la façon dont Canonical |
172 | +protège vos informations personelles. Pour toute information sur la |
173 | +manière dont les parties tierces peuvent utiliser vos informations, |
174 | +veuillez consulter leurs politiques de respect de la vie privée.</p> |
175 | + |
176 | +<h2>Recherche en ligne</h2> |
177 | +<p>Vous pouvez restreindre votre tableau de bord de telle sorte que nous |
178 | + n'envoyions pas les recherches à des tiers et que vous ne receviez pas |
179 | +de résultat de recherche en ligne. Pour ce faire, allez dans le panneau |
180 | +de configuration « vie privée » et désactivez « Inclure |
181 | +les résultats de la recherche en ligne ». Le panneau de |
182 | +configuration « vie privée » peut être trouvé dans les |
183 | +paramètres système ou via une recherche dans le tableau de bord. Pour |
184 | +une liste actualisée des parties tierces sélectionnées veuillez |
185 | +consulter |
186 | +<a href="http://www.ubuntu.com/privacypolicy/thirdparties">www.ubuntu.com/privacypolicy/thirdparties</a>.</p> |
187 | + |
188 | +<h2>Modifications</h2> |
189 | +<p>Même si les changements seront probablement mineurs, Canonical peut |
190 | +modifier ces mentions légales de temps à autres et à la seule discrétion |
191 | + de Canonical. Veuillez consulter régulièrement cette page pour tout |
192 | +changement dans les mentions légales, il nous est impossible de vous en |
193 | +avertir directement.</p> |
194 | + |
195 | +<h2>Comment nous contacter</h2> |
196 | +<p>Veuillez soumettre toute question ou commentaire à propos de la |
197 | +recherche dans le tableau de bord ou de ces mentions légales, en nous |
198 | +contactant à l'adresse suivante : </p><address>Canonical Group Ltd, 5th Floor, Blue Fin Building, 110 Southwark Street, London, England, SE1 0SU.</address><p></p> |
199 | + |
200 | +</body></html> |
201 | \ No newline at end of file |
202 | |
203 | === modified file 'data/ui/DashPrivacyInterfaceWindow.ui' |
204 | --- data/ui/DashPrivacyInterfaceWindow.ui 2012-10-20 07:41:01 +0000 |
205 | +++ data/ui/DashPrivacyInterfaceWindow.ui 2012-10-22 16:50:24 +0000 |
206 | @@ -195,7 +195,8 @@ |
207 | <property name="xpad">27</property> |
208 | <property name="ypad">5</property> |
209 | <property name="label" translatable="yes" comments="This field explain that you can change this setting later + legal notice">You can go back on your choice at any time, in the private life menu in the system settings. |
210 | -Learn more about this function and browse the legal notice.</property> |
211 | + Learn more about this function and browse <a href="%(url)s">the legal notice</a>.</property> |
212 | + <property name="use_markup">True</property> |
213 | <property name="justify">fill</property> |
214 | <property name="wrap">True</property> |
215 | <property name="ellipsize">start</property> |
216 | |
217 | === modified file 'debian/changelog' |
218 | --- debian/changelog 2012-10-20 08:03:08 +0000 |
219 | +++ debian/changelog 2012-10-22 16:50:24 +0000 |
220 | @@ -1,101 +1,5 @@ |
221 | -dash-privacy-interface (12.10.1) quantal; urgency=low |
222 | - |
223 | - * translation added |
224 | - |
225 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 10:03:05 +0200 |
226 | - |
227 | -dash-privacy-interface (12.10) quantal; urgency=low |
228 | - |
229 | - * New release. |
230 | - |
231 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 09:41:05 +0200 |
232 | - |
233 | -dash-privacy-interface (0.1-public17) quantal; urgency=low |
234 | - |
235 | - * New release. |
236 | - |
237 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 09:37:26 +0200 |
238 | - |
239 | -dash-privacy-interface (0.1-public16) quantal; urgency=low |
240 | - |
241 | - * New release. |
242 | - |
243 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 09:15:13 +0200 |
244 | - |
245 | -dash-privacy-interface (0.1-public15) quantal; urgency=low |
246 | - |
247 | - * New release. |
248 | - |
249 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 09:08:30 +0200 |
250 | - |
251 | -dash-privacy-interface (0.1-public14) quantal; urgency=low |
252 | - |
253 | - * New release. |
254 | - |
255 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 09:02:33 +0200 |
256 | - |
257 | -dash-privacy-interface (0.1-public13) quantal; urgency=low |
258 | - |
259 | - * New release. |
260 | - |
261 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:57:51 +0200 |
262 | - |
263 | -dash-privacy-interface (0.1-public12) quantal; urgency=low |
264 | - |
265 | - * New release. |
266 | - |
267 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:54:18 +0200 |
268 | - |
269 | -dash-privacy-interface (0.1-public11) quantal; urgency=low |
270 | - |
271 | - * New release. |
272 | - |
273 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:51:30 +0200 |
274 | - |
275 | -dash-privacy-interface (0.1-public10) quantal; urgency=low |
276 | - |
277 | - * New release. |
278 | - |
279 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:49:04 +0200 |
280 | - |
281 | -dash-privacy-interface (0.1-public9) quantal; urgency=low |
282 | - |
283 | - * New release. |
284 | - |
285 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:47:47 +0200 |
286 | - |
287 | -dash-privacy-interface (0.1-public8) quantal; urgency=low |
288 | - |
289 | - * New release. |
290 | - |
291 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:45:06 +0200 |
292 | - |
293 | -dash-privacy-interface (0.1-public7) quantal; urgency=low |
294 | - |
295 | - * New release. |
296 | - |
297 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:38:50 +0200 |
298 | - |
299 | -dash-privacy-interface (0.1-public6) quantal; urgency=low |
300 | - |
301 | - * New release. |
302 | - |
303 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:36:49 +0200 |
304 | - |
305 | -dash-privacy-interface (0.1-public5) quantal; urgency=low |
306 | - |
307 | - * New release. |
308 | - |
309 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:34:39 +0200 |
310 | - |
311 | -dash-privacy-interface (0.1-public4) quantal; urgency=low |
312 | - |
313 | - * New release. |
314 | - |
315 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:33:06 +0200 |
316 | - |
317 | -dash-privacy-interface (0.1-public3) quantal; urgency=low |
318 | +dash-privacy-interface (12.10.1) precise; urgency=low |
319 | |
320 | * Initial release. |
321 | |
322 | - -- cm-t arudy <arudy@ubuntu-fr.org> Sat, 20 Oct 2012 08:31:23 +0200 |
323 | + -- Tyrus <tyrus@tyrus-carthage> Sun, 21 Oct 2012 21:25:06 +0200 |
324 | |
325 | === modified file 'debian/copyright' |
326 | --- debian/copyright 2012-10-20 07:41:10 +0000 |
327 | +++ debian/copyright 2012-10-22 16:50:24 +0000 |
328 | @@ -4,6 +4,7 @@ |
329 | Source: https://launchpad.net/dash-privacy-interface |
330 | |
331 | Files: * |
332 | +Copyright: (C) |
333 | Copyright: (C) |
334 | Copyright: (C) </property><property name="can_focus">False</property> |
335 | License: GPL-3 |
336 | |
337 | === modified file 'po/dash-privacy-interface.pot' |
338 | --- po/dash-privacy-interface.pot 2012-10-20 07:54:32 +0000 |
339 | +++ po/dash-privacy-interface.pot 2012-10-22 16:50:24 +0000 |
340 | @@ -8,7 +8,7 @@ |
341 | msgstr "" |
342 | "Project-Id-Version: PACKAGE VERSION\n" |
343 | "Report-Msgid-Bugs-To: \n" |
344 | -"POT-Creation-Date: 2012-10-20 09:52+0200\n" |
345 | +"POT-Creation-Date: 2012-10-21 21:25+0200\n" |
346 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
347 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
348 | "Language-Team: LANGUAGE <LL@li.org>\n" |
349 | @@ -17,13 +17,6 @@ |
350 | "Content-Type: text/plain; charset=UTF-8\n" |
351 | "Content-Transfer-Encoding: 8bit\n" |
352 | |
353 | -#: ../dash_privacy_interface/DashPrivacyInterfaceWindow.py:72 |
354 | -msgid "" |
355 | -"The file was created after the current user has manualy chosen his dash " |
356 | -"privacy search result setting (online and local or local only). \n" |
357 | -" For more information: https://launchpad.net/dash-privacy-interface " |
358 | -msgstr "" |
359 | - |
360 | #. Code for other initialization actions should be added here. |
361 | #. Window title |
362 | #: ../data/ui/DashPrivacyInterfaceWindow.ui.h:2 |
363 | @@ -63,11 +56,13 @@ |
364 | msgstr "" |
365 | |
366 | #. This field explain that you can change this setting later + legal notice |
367 | -#: ../data/ui/DashPrivacyInterfaceWindow.ui.h:15 |
368 | +#: ../data/ui/DashPrivacyInterfaceWindow.ui.h:16 |
369 | +#, no-c-format |
370 | msgid "" |
371 | "You can go back on your choice at any time, in the private life menu in the " |
372 | "system settings.\n" |
373 | -"Learn more about this function and browse the legal notice." |
374 | +" Learn more about this function and browse <a href=\"%(url)s" |
375 | +"\">the legal notice</a>." |
376 | msgstr "" |
377 | |
378 | #: ../data/ui/PreferencesDashPrivacyInterfaceDialog.ui.h:1 |
379 | |
380 | === modified file 'setup.py' |
381 | --- setup.py 2012-10-20 08:03:02 +0000 |
382 | +++ setup.py 2012-10-22 16:50:24 +0000 |
383 | @@ -1,22 +1,22 @@ |
384 | #!/usr/bin/env python |
385 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
386 | ### BEGIN LICENSE |
387 | -# Copyright (C) |
388 | -# ubuntu-fr <LoCo Team> |
389 | +# Copyright (C) |
390 | +# ubuntu-fr <LoCo Team> |
391 | # kanor <Romain DUBREIL> <contact@kanor.fr> |
392 | # cm-t <Rudy ANDRÉ> <arudy@ubuntu-fr.org> |
393 | # olive <Olivier FRAYSSE> <olive@picapo.org> |
394 | # quesh <Frédéric MANDE> <quesh@quesh.fr> |
395 | -# This program is free software: you can redistribute it and/or modify it |
396 | -# under the terms of the GNU General Public License version 3, as published |
397 | +# This program is free software: you can redistribute it and/or modify it |
398 | +# under the terms of the GNU General Public License version 3, as published |
399 | # by the Free Software Foundation. |
400 | -# |
401 | -# This program is distributed in the hope that it will be useful, but |
402 | -# WITHOUT ANY WARRANTY; without even the implied warranties of |
403 | -# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
404 | +# |
405 | +# This program is distributed in the hope that it will be useful, but |
406 | +# WITHOUT ANY WARRANTY; without even the implied warranties of |
407 | +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
408 | # PURPOSE. See the GNU General Public License for more details. |
409 | -# |
410 | -# You should have received a copy of the GNU General Public License along |
411 | +# |
412 | +# You should have received a copy of the GNU General Public License along |
413 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
414 | ### END LICENSE |
415 | |
416 | @@ -24,6 +24,7 @@ |
417 | |
418 | import os |
419 | import sys |
420 | +import glob |
421 | |
422 | try: |
423 | import DistUtilsExtra.auto |
424 | @@ -134,10 +135,14 @@ |
425 | update_desktop_file(desktop_file, target_pkgdata, target_scripts) |
426 | compile_schemas(self.root, target_data) |
427 | |
428 | - |
429 | + |
430 | ################################################################################## |
431 | ###################### YOU SHOULD MODIFY ONLY WHAT IS BELOW ###################### |
432 | ################################################################################## |
433 | +#List translate legal notice |
434 | +l_file_legal_notice = glob.glob(os.path.join( |
435 | + os.path.dirname(os.path.abspath(__file__)), |
436 | + "data/legalnotice/*.html")) |
437 | |
438 | DistUtilsExtra.auto.setup( |
439 | name='dash-privacy-interface', |
440 | @@ -148,6 +153,10 @@ |
441 | #description='UI for managing …', |
442 | #long_description='Here a longer description', |
443 | url='https://launchpad.net/dash-privacy-interface', |
444 | - cmdclass={'install': InstallAndUpdateDataDirectory} |
445 | + cmdclass={'install': InstallAndUpdateDataDirectory}, |
446 | + data_files=[("/etc/skel/.config/autostart/", |
447 | + ["data/dash-privacy-interface.desktop"]), |
448 | + ("/usr/share/unity/6/", |
449 | + l_file_legal_notice)] |
450 | ) |
451 |