Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/platform/xposix/features.py : 93%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is part of Xpra.
2# Copyright (C) 2010 Nathaniel Smith <njs@pobox.com>
3# Copyright (C) 2011-2019 Antoine Martin <antoine@xpra.org>
4# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
5# later version. See the file COPYING for details.
7#don't bother trying to forward system tray with Ubuntu's "unity":
8from xpra.os_util import is_unity, is_Wayland
10SYSTEM_TRAY_SUPPORTED = not is_unity()
12LOCAL_SERVERS_SUPPORTED = True
13SHADOW_SUPPORTED = True
15DEFAULT_ENV = [
16 "#avoid Ubuntu's global menu, which is a mess and cannot be forwarded:",
17 "UBUNTU_MENUPROXY=",
18 "QT_X11_NO_NATIVE_MENUBAR=1",
19 "#fix for MainSoft's MainWin buggy window management:",
20 "MWNOCAPTURE=true",
21 "MWNO_RIT=true",
22 "MWWM=allwm",
23 "#force GTK3 applications to use X11 so we can intercept them:",
24 "GDK_BACKEND=x11",
25 "#force Qt applications to use X11 so we can intercept them:",
26 "QT_QPA_PLATFORM=xcb",
27 "#disable Qt scaling:"
28 "QT_AUTO_SCREEN_SET_FACTOR=0",
29 "QT_SCALE_FACTOR=1",
30 "#overlay scrollbars complicate things:"
31 "GTK_OVERLAY_SCROLLING=0",
32 "#some versions of GTK3 honour this option, sadly not all:",
33 "GTK_CSD=0",
34 "#silence some AT-SPI and atk-bridge warnings:",
35 "NO_AT_BRIDGE=1",
36 ]
38DEFAULT_SSH_CMD = "ssh"
40CLIPBOARDS=["CLIPBOARD", "PRIMARY"]
41if not is_Wayland():
42 CLIPBOARDS.append("SECONDARY")
43 CLIPBOARD_GREEDY = False
44else:
45 CLIPBOARD_GREEDY = True
46CLIPBOARD_PREFERRED_TARGETS = ("UTF8_STRING", "TEXT", "STRING", "text/plain", "image/png")
48OPEN_COMMAND = ["/usr/bin/xdg-open"]
50INPUT_DEVICES = ["auto", "xi", "uinput"]
52COMMAND_SIGNALS = ("SIGINT", "SIGTERM", "SIGHUP", "SIGKILL", "SIGUSR1", "SIGUSR2")