holgersson-overlay/x11-wm/xpra/files/xpra-3.0.2-dbus.patch
Nils Freydank b88d0a611b
x11-wm/xpra: Bump tree package to 3.0.9
This package is still in pre-GLEP81 state and enables webp by default

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B
Signed-off-by: Nils Freydank <holgersson@posteo.de>
2020-05-03 21:38:07 +02:00

30 lines
1.1 KiB
Diff

Remove dbus functionality if USE=dbus is not specified.
Index: xpra-3.0.2/xpra/scripts/server.py
===================================================================
--- xpra-3.0.2.orig/xpra/scripts/server.py
+++ xpra-3.0.2/xpra/scripts/server.py
@@ -748,14 +748,9 @@ def do_run_server(error_cb, opts, mode,
log("chdir(%s)", opts.chdir)
os.chdir(opts.chdir)
- dbus_pid, dbus_env = 0, {}
if not shadowing and POSIX and not OSX and not clobber:
no_gtk()
assert starting or starting_desktop or proxying
- from xpra.server.dbus.dbus_start import start_dbus
- dbus_pid, dbus_env = start_dbus(opts.dbus_launch)
- if dbus_env:
- os.environ.update(dbus_env)
display = None
if not proxying:
@@ -835,7 +830,6 @@ def do_run_server(error_cb, opts, mode,
app.display_name = display_name
app.init(opts)
app.init_sockets(sockets)
- app.init_dbus(dbus_pid, dbus_env)
if not shadowing and (xvfb_pid or clobber):
app.init_display_pid(xvfb_pid)
app.original_desktop_display = desktop_display