/[gentoo-x86]/net-wireless/blueman/files/blueman-1.23-plugins-conf-file.patch
Gentoo

Contents of /net-wireless/blueman/files/blueman-1.23-plugins-conf-file.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Wed Jun 13 08:31:28 2012 UTC (7 years, 8 months ago) by dev-zero
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Version bump (bug #386575, thanks to Leho Kraav for the hint for the broken status icon), also fixes bug #337947 by depending on the hicolor-icon-theme package, bug #351647 based on the patch by Vince C. and modified by me and bug #392241 by now using the gconf USE flag instead of gnome.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 diff --git a/blueman/plugins/config/File.py b/blueman/plugins/config/File.py
2 index c5414c5..9a9e156 100644
3 --- a/blueman/plugins/config/File.py
4 +++ b/blueman/plugins/config/File.py
5 @@ -37,7 +37,12 @@ signal.signal(signal.SIGHUP, sighandler)
6
7 dbus.service.Object.SUPPORTS_MULTIPLE_OBJECT_PATHS = True
8
9 -cfg_path = os.path.expanduser('~/.config/blueman/blueman.cfg')
10 +cfg_dir = os.path.expanduser('~/.config/blueman')
11 +
12 +if os.environ.has_key('XDG_CONFIG_HOME'):
13 + cfg_dir = '%s/blueman' % os.environ['XDG_CONFIG_HOME']
14 +
15 +cfg_path = '%s/blueman.cfg' % cfg_dir
16
17 class Monitor(dbus.service.Object):
18 __id__ = 0
19 @@ -89,9 +94,9 @@ class File(ConfigPlugin):
20 def on_load(self, section):
21
22 if not File.__db__:
23 - if not os.path.exists(os.path.expanduser('~/.config/blueman')):
24 + if not os.path.exists(os.path.expanduser(cfg_dir)):
25 try:
26 - os.makedirs(os.path.expanduser('~/.config/blueman'))
27 + os.makedirs(os.path.expanduser(cfg_dir))
28 except:
29 pass
30 try:

  ViewVC Help
Powered by ViewVC 1.1.20