xpra icon
Bug tracker and wiki

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


Ticket #2331: xpra-2.5.2.redhat-libexec.patch

File xpra-2.5.2.redhat-libexec.patch, 1.6 KB (added by Eric Lemings, 2 years ago)

Patch for /usr/libexec paths on Red Hat systems

  • setup.py

    a b  
    2525from xpra.os_util import (
    2626    get_status_output, getUbuntuVersion,
    2727    PYTHON3, BITS, WIN32, OSX, LINUX, POSIX, NETBSD, FREEBSD, OPENBSD,
    28     is_Ubuntu, is_Debian, is_Raspbian, is_Fedora, is_CentOS,
     28    is_Ubuntu, is_Debian, is_Raspbian, is_Fedora, is_CentOS, is_RedHat
    2929    )
    3030
    3131if sys.version<'2.7':
     
    15391539        if scripts_ENABLED:
    15401540            scripts += ["scripts/xpra_udev_product_version", "scripts/xpra_signal_listener"]
    15411541        libexec_scripts = []
    1542         if is_Fedora() or is_CentOS():
     1542        if is_Fedora() or is_CentOS() or is_RedHat():
    15431543            libexec = "libexec"
    15441544        else:
    15451545            libexec = "lib"
  • xpra/os_util.py

    a b  
    286286    if not POSIX:
    287287        return False
    288288    try:
     289        if b"RedHat"==variant and get_linux_distribution()[0].startswith(variant):
     290            return True
    289291        if get_linux_distribution()[0]==variant:
    290292            return True
    291293    except:
  • xpra/platform/xposix/paths.py

    a b  
    7070    return os.path.join(get_app_dir(), "icons")
    7171
    7272def do_get_libexec_dir():
    73     from xpra.os_util import is_Fedora, is_CentOS
    74     if is_Fedora() or is_CentOS():
     73    from xpra.os_util import is_Fedora, is_CentOS, is_RedHat
     74    if is_Fedora() or is_CentOS() or is_RedHat():
    7575        return "/usr/libexec/"
    7676    return "/usr/lib"
    7777