URI: 
       tMerge pull request #1608 from andreas-h/desktop_install - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit d168f66b60cbaa1b2cdab11f88b3a26e627a8eef
   DIR parent bd309cff49370874a85dc4437e3f515266677275
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue,  5 Jan 2016 12:42:48 +0100
       
       Merge pull request #1608 from andreas-h/desktop_install
       
       BUG: allow non-root installation on linux
       Diffstat:
         M setup.py                            |       5 +++++
       
       1 file changed, 5 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/setup.py b/setup.py
       t@@ -17,6 +17,11 @@ data_files = []
        
        if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:
            usr_share = os.path.join(sys.prefix, "share")
       +    if not os.access(usr_share, os.W_OK):
       +        if 'XDG_DATA_HOME' in os.environ.keys():
       +            usr_share = os.environ['$XDG_DATA_HOME']
       +        else:
       +            usr_share = os.path.expanduser('~/.local/share')
            data_files += [
                (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
                (os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])