xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #583: 0001-fix-user-installation.patch

File 0001-fix-user-installation.patch, 787 bytes (added by Benoit Gschwind, 7 years ago)
  • src/setup.py

    From 4fe2f4b831bacb5c98b75e93b28dfbaaf221a857 Mon Sep 17 00:00:00 2001
    From: Benoit Gschwind <gschwind@gnu-log.net>
    Date: Sat, 31 May 2014 11:45:23 +0200
    Subject: [PATCH 1/3] fix user installation
    
    ---
     src/setup.py | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/setup.py b/src/setup.py
    index f41965d..fe290bf 100755
    a b else: 
    13461346            return {}
    13471347    if "install" in sys.argv:
    13481348        #prepare default [/usr/local]/etc configuration files:
    1349         if sys.prefix == '/usr':
     1349        if '--user' in sys.argv:
     1350            etc_prefix = 'etc/xpra'
     1351        elif sys.prefix == '/usr':
    13501352            etc_prefix = '/etc/xpra'
    13511353        else:
    13521354            etc_prefix = sys.prefix + '/etc/xpra'