1 |
zerochaos 14/05/05 08:22:45 |
2 |
|
3 |
Added: blueman-9999-plugins-conf-file.patch |
4 |
blueman-9999-set-codeset-for-gettext-to-UTF-8-always.patch |
5 |
Log: |
6 |
initial commit of 9999 ebuild with bluez5 support, if we like it, we can snapshot |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-wireless/blueman/files/blueman-9999-plugins-conf-file.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/files/blueman-9999-plugins-conf-file.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/files/blueman-9999-plugins-conf-file.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: blueman-9999-plugins-conf-file.patch |
17 |
=================================================================== |
18 |
diff --git a/blueman/plugins/config/File.py b/blueman/plugins/config/File.py |
19 |
index 3beccb4..c17fe77 100644 |
20 |
--- a/blueman/plugins/config/File.py |
21 |
+++ b/blueman/plugins/config/File.py |
22 |
@@ -22,7 +22,12 @@ signal.signal(signal.SIGHUP, sighandler) |
23 |
|
24 |
dbus.service.Object.SUPPORTS_MULTIPLE_OBJECT_PATHS = True |
25 |
|
26 |
-cfg_path = os.path.expanduser('~/.config/blueman/blueman.cfg') |
27 |
+cfg_dir = os.path.expanduser('~/.config/blueman') |
28 |
+ |
29 |
+if os.environ.has_key('XDG_CONFIG_HOME'): |
30 |
+ cfg_dir = '%s/blueman' % os.environ['XDG_CONFIG_HOME'] |
31 |
+ |
32 |
+cfg_path = '%s/blueman.cfg' % cfg_dir |
33 |
|
34 |
|
35 |
class Monitor(dbus.service.Object): |
36 |
@@ -77,9 +82,9 @@ class File(ConfigPlugin): |
37 |
def on_load(self, section): |
38 |
|
39 |
if not File.__db__: |
40 |
- if not os.path.exists(os.path.expanduser('~/.config/blueman')): |
41 |
+ if not os.path.exists(os.path.expanduser(cfg_dir)): |
42 |
try: |
43 |
- os.makedirs(os.path.expanduser('~/.config/blueman')) |
44 |
+ os.makedirs(os.path.expanduser(cfg_dir)) |
45 |
except: |
46 |
pass |
47 |
try: |
48 |
|
49 |
|
50 |
|
51 |
1.1 net-wireless/blueman/files/blueman-9999-set-codeset-for-gettext-to-UTF-8-always.patch |
52 |
|
53 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/files/blueman-9999-set-codeset-for-gettext-to-UTF-8-always.patch?rev=1.1&view=markup |
54 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/blueman/files/blueman-9999-set-codeset-for-gettext-to-UTF-8-always.patch?rev=1.1&content-type=text/plain |
55 |
|
56 |
Index: blueman-9999-set-codeset-for-gettext-to-UTF-8-always.patch |
57 |
=================================================================== |
58 |
diff --git a/apps/blueman-adapters b/apps/blueman-adapters |
59 |
index e6f1b16..95f6997 100755 |
60 |
--- a/apps/blueman-adapters |
61 |
+++ b/apps/blueman-adapters |
62 |
@@ -6,6 +6,7 @@ from gi.repository import Pango |
63 |
import os.path |
64 |
import sys |
65 |
import signal |
66 |
+from locale import bind_textdomain_codeset |
67 |
|
68 |
#support running uninstalled |
69 |
_dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) |
70 |
@@ -34,6 +35,7 @@ class BluemanAdapters: |
71 |
|
72 |
builder = Gtk.Builder() |
73 |
builder.set_translation_domain("blueman") |
74 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
75 |
builder.add_from_file(UI_PATH + "/adapters.ui") |
76 |
self.dialog = builder.get_object("dialog") |
77 |
|
78 |
diff --git a/apps/blueman-assistant b/apps/blueman-assistant |
79 |
index dc7f18f..47893da 100755 |
80 |
--- a/apps/blueman-assistant |
81 |
+++ b/apps/blueman-assistant |
82 |
@@ -16,6 +16,7 @@ import random |
83 |
import signal |
84 |
import dbus.glib |
85 |
from optparse import OptionParser |
86 |
+from locale import bind_textdomain_codeset |
87 |
|
88 |
#support running uninstalled |
89 |
_dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) |
90 |
@@ -63,6 +64,7 @@ class Assistant(Agent): |
91 |
|
92 |
self.Builder = Gtk.Builder() |
93 |
self.Builder.set_translation_domain("blueman") |
94 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
95 |
self.Builder.add_from_file(UI_PATH + "/assistant.ui") |
96 |
self.assistant = self.Builder.get_object("assistant") |
97 |
self.assistant.set_title(_("Bluetooth Assistant")) |
98 |
diff --git a/apps/blueman-manager b/apps/blueman-manager |
99 |
index f31d219..e938601 100755 |
100 |
--- a/apps/blueman-manager |
101 |
+++ b/apps/blueman-manager |
102 |
@@ -27,6 +27,7 @@ import dbus, dbus.glib |
103 |
from blueman.Constants import * |
104 |
import gi |
105 |
gi.require_version("Gtk", "3.0") |
106 |
+from locale import bind_textdomain_codeset |
107 |
from gi.repository import Gtk |
108 |
from gi.repository import GObject |
109 |
from blueman.bluez.BlueZInterface import BlueZInterface |
110 |
@@ -62,6 +64,7 @@ class Blueman: |
111 |
|
112 |
self.Builder = Gtk.Builder() |
113 |
self.Builder.set_translation_domain("blueman") |
114 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
115 |
self.Builder.add_from_file(UI_PATH + "/manager-main.ui") |
116 |
|
117 |
self.window = self.Builder.get_object("window") |
118 |
diff --git a/apps/blueman-sendto b/apps/blueman-sendto |
119 |
index e72e6ab..ce25926 100755 |
120 |
--- a/apps/blueman-sendto |
121 |
+++ b/apps/blueman-sendto |
122 |
@@ -13,6 +13,7 @@ from optparse import OptionParser |
123 |
import gettext |
124 |
import urllib |
125 |
import time |
126 |
+from locale import bind_textdomain_codeset |
127 |
|
128 |
from blueman.Constants import * |
129 |
import gi |
130 |
@@ -46,6 +47,7 @@ class Sender(GObject.GObject): |
131 |
GObject.GObject.__init__(self) |
132 |
self.Builder = Gtk.Builder() |
133 |
self.Builder.set_translation_domain("blueman") |
134 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
135 |
self.Builder.add_from_file(UI_PATH + "/send-dialog.ui") |
136 |
self.window = self.Builder.get_object("window") |
137 |
|
138 |
diff --git a/apps/blueman-services b/apps/blueman-services |
139 |
index 25a529b..4b4419c 100755 |
140 |
--- a/apps/blueman-services |
141 |
+++ b/apps/blueman-services |
142 |
@@ -2,6 +2,7 @@ |
143 |
|
144 |
import os |
145 |
import sys |
146 |
+from locale import bind_textdomain_codeset |
147 |
#support running uninstalled |
148 |
_dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) |
149 |
if os.path.exists(os.path.join(_dirname, "CHANGELOG.md")): |
150 |
@@ -29,6 +30,7 @@ class BluemanServices: |
151 |
|
152 |
self.Builder = Gtk.Builder() |
153 |
self.Builder.set_translation_domain("blueman") |
154 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
155 |
self.Builder.add_from_file(UI_PATH + "/services.ui") |
156 |
|
157 |
self.Config = Config() |
158 |
diff --git a/blueman/gui/GsmSettings.py b/blueman/gui/GsmSettings.py |
159 |
index ee07e62..e58277b 100644 |
160 |
--- a/blueman/gui/GsmSettings.py |
161 |
+++ b/blueman/gui/GsmSettings.py |
162 |
@@ -21,6 +21,7 @@ from blueman.Functions import * |
163 |
from blueman.Constants import * |
164 |
|
165 |
from gi.repository import Gtk |
166 |
+from locale import bind_textdomain_codeset |
167 |
|
168 |
class GsmSettings(Gtk.Dialog): |
169 |
def __init__(self, bd_address): |
170 |
@@ -30,6 +31,7 @@ class GsmSettings(Gtk.Dialog): |
171 |
|
172 |
self.Builder = Gtk.Builder() |
173 |
self.Builder.set_translation_domain("blueman") |
174 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
175 |
self.Builder.add_from_file(UI_PATH +"/gsm-settings.ui") |
176 |
|
177 |
vbox = self.Builder.get_object("vbox1") |
178 |
diff --git a/blueman/gui/applet/PluginDialog.py b/blueman/gui/applet/PluginDialog.py |
179 |
index f994cc9..84d6370 100644 |
180 |
--- a/blueman/gui/applet/PluginDialog.py |
181 |
+++ b/blueman/gui/applet/PluginDialog.py |
182 |
@@ -23,6 +23,7 @@ from blueman.Functions import * |
183 |
|
184 |
from blueman.gui.GenericList import GenericList |
185 |
import weakref |
186 |
+from locale import bind_textdomain_codeset |
187 |
|
188 |
class SettingsWidget(Gtk.VBox): |
189 |
def __init__(self, inst): |
190 |
@@ -118,6 +119,7 @@ class PluginDialog(Gtk.Dialog): |
191 |
|
192 |
self.Builder = Gtk.Builder() |
193 |
self.Builder.set_translation_domain("blueman") |
194 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
195 |
self.Builder.add_from_file(UI_PATH +"/applet-plugins-widget.ui") |
196 |
|
197 |
self.set_title(_("Plugins")) |
198 |
diff --git a/blueman/main/applet/BluezAgent.py b/blueman/main/applet/BluezAgent.py |
199 |
index 868dbe9..403077a 100644 |
200 |
--- a/blueman/main/applet/BluezAgent.py |
201 |
+++ b/blueman/main/applet/BluezAgent.py |
202 |
@@ -25,6 +25,7 @@ from gi.repository import Gtk |
203 |
from gi.repository import GObject |
204 |
from gi.types import GObjectMeta |
205 |
import cgi |
206 |
+from locale import bind_textdomain_codeset |
207 |
import blueman.bluez as Bluez |
208 |
from blueman.Sdp import * |
209 |
from blueman.Constants import * |
210 |
@@ -68,6 +69,7 @@ class CommonAgent(GObject.GObject, Agent): |
211 |
editable.stop_emission("insert-text") |
212 |
|
213 |
builder = Gtk.Builder() |
214 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
215 |
builder.add_from_file(UI_PATH + "/applet-passkey.ui") |
216 |
builder.set_translation_domain("blueman") |
217 |
dialog = builder.get_object("dialog") |
218 |
diff --git a/blueman/plugins/applet/NetUsage.py b/blueman/plugins/applet/NetUsage.py |
219 |
index 1584580..6262ff0 100644 |
220 |
--- a/blueman/plugins/applet/NetUsage.py |
221 |
+++ b/blueman/plugins/applet/NetUsage.py |
222 |
@@ -33,7 +33,7 @@ import dbus |
223 |
import time |
224 |
import datetime |
225 |
import gettext |
226 |
- |
227 |
+from locale import bind_textdomain_codeset |
228 |
|
229 |
class MonitorBase(GObject.GObject): |
230 |
__gsignals__ = { |
231 |
@@ -150,6 +150,7 @@ class Dialog: |
232 |
builder = Gtk.Builder() |
233 |
builder.add_from_file(UI_PATH + "/net-usage.ui") |
234 |
builder.set_translation_domain("blueman") |
235 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
236 |
|
237 |
self.dialog = builder.get_object("dialog") |
238 |
self.dialog.connect("response", self.on_response) |
239 |
diff --git a/blueman/plugins/services/Audio.py b/blueman/plugins/services/Audio.py |
240 |
index b44d6b5..4b13e8f 100644 |
241 |
--- a/blueman/plugins/services/Audio.py |
242 |
+++ b/blueman/plugins/services/Audio.py |
243 |
@@ -19,6 +19,7 @@ |
244 |
|
245 |
from gi.repository import Gtk |
246 |
import dbus |
247 |
+from locale import bind_textdomain_codeset |
248 |
from blueman.Constants import * |
249 |
from blueman.plugins.ServicePlugin import ServicePlugin |
250 |
|
251 |
@@ -35,6 +36,7 @@ class Audio(ServicePlugin): |
252 |
|
253 |
self.Builder = Gtk.Builder() |
254 |
self.Builder.set_translation_domain("blueman") |
255 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
256 |
self.Builder.add_from_file(UI_PATH +"/services-audio.ui") |
257 |
self.widget = self.Builder.get_object("audio") |
258 |
|
259 |
diff --git a/blueman/plugins/services/Network.py b/blueman/plugins/services/Network.py |
260 |
index e003345..bd705d9 100644 |
261 |
--- a/blueman/plugins/services/Network.py |
262 |
+++ b/blueman/plugins/services/Network.py |
263 |
@@ -18,6 +18,7 @@ |
264 |
# |
265 |
|
266 |
from gi.repository import Gtk |
267 |
+from locale import bind_textdomain_codeset |
268 |
from blueman.Constants import * |
269 |
from blueman.Functions import have, dprint, mask_ip4_address |
270 |
from blueman.Lib import get_net_interfaces, get_net_address, get_net_netmask |
271 |
@@ -36,6 +37,7 @@ class Network(ServicePlugin): |
272 |
|
273 |
self.Builder = Gtk.Builder() |
274 |
self.Builder.set_translation_domain("blueman") |
275 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
276 |
self.Builder.add_from_file(UI_PATH +"/services-network.ui") |
277 |
self.widget = self.Builder.get_object("network") |
278 |
|
279 |
diff --git a/blueman/plugins/services/Transfer.py b/blueman/plugins/services/Transfer.py |
280 |
index 55024d3..ffd75ec 100644 |
281 |
--- a/blueman/plugins/services/Transfer.py |
282 |
+++ b/blueman/plugins/services/Transfer.py |
283 |
@@ -18,6 +18,7 @@ |
284 |
# |
285 |
|
286 |
from gi.repository import Gtk |
287 |
+from locale import bind_textdomain_codeset |
288 |
from blueman.Constants import * |
289 |
from blueman.plugins.ServicePlugin import ServicePlugin |
290 |
|
291 |
@@ -32,6 +33,7 @@ class Transfer(ServicePlugin): |
292 |
|
293 |
self.Builder = Gtk.Builder() |
294 |
self.Builder.set_translation_domain("blueman") |
295 |
+ bind_textdomain_codeset("blueman", "UTF-8") |
296 |
self.Builder.add_from_file(UI_PATH +"/services-transfer.ui") |
297 |
self.widget = self.Builder.get_object("transfer") |