xpra icon
Bug tracker and wiki

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


Ticket #2996: run-xpra

File run-xpra, 1000 bytes (added by Mark Knittel, 7 weeks ago)
Line 
1#!/bin/sh
2LANG='en_US.UTF-8'; export LANG
3PWD='/home/ares'; export PWD
4TERM='xterm-256color'; export TERM
5SHELL='/bin/bash'; export SHELL
6SHLVL='1'; export SHLVL
7PATH='/home/ares/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin':"$PATH"; export PATH
8GDK_SCALE='1'; export GDK_SCALE
9GDK_DPI_SCALE='1'; export GDK_DPI_SCALE
10GTK_CSD='0'; export GTK_CSD
11XPRA_PROXY_START_UUID='5eb1c0e264064def9c2e0732ac22a043'; export XPRA_PROXY_START_UUID
12GDK_BACKEND='x11'; export GDK_BACKEND
13cd '/home/ares'
14_XPRA_PYTHON='/usr/bin/python3'
15_XPRA_SCRIPT='/usr/bin/xpra'
16
17if which "$_XPRA_PYTHON" > /dev/null && [ -e "$_XPRA_SCRIPT" ]; then
18    # Happypath:
19    exec "$_XPRA_PYTHON" "$_XPRA_SCRIPT" "$@"
20else
21    cat >&2 <<END
22    Could not find one or both of '$_XPRA_PYTHON' and '$_XPRA_SCRIPT'
23    Perhaps your environment has changed since the xpra server was started?
24    I'll just try executing 'xpra' with current PATH, and hope...
25END
26    exec xpra "$@"
27fi