1 | #!/bin/sh |
---|
2 | LANG='en_US.UTF-8'; export LANG |
---|
3 | PWD='/home/ares'; export PWD |
---|
4 | TERM='xterm-256color'; export TERM |
---|
5 | SHELL='/bin/bash'; export SHELL |
---|
6 | SHLVL='1'; export SHLVL |
---|
7 | PATH='/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 |
---|
8 | GDK_SCALE='1'; export GDK_SCALE |
---|
9 | GDK_DPI_SCALE='1'; export GDK_DPI_SCALE |
---|
10 | GTK_CSD='0'; export GTK_CSD |
---|
11 | XPRA_PROXY_START_UUID='5eb1c0e264064def9c2e0732ac22a043'; export XPRA_PROXY_START_UUID |
---|
12 | GDK_BACKEND='x11'; export GDK_BACKEND |
---|
13 | cd '/home/ares' |
---|
14 | _XPRA_PYTHON='/usr/bin/python3' |
---|
15 | _XPRA_SCRIPT='/usr/bin/xpra' |
---|
16 | |
---|
17 | if which "$_XPRA_PYTHON" > /dev/null && [ -e "$_XPRA_SCRIPT" ]; then |
---|
18 | # Happypath: |
---|
19 | exec "$_XPRA_PYTHON" "$_XPRA_SCRIPT" "$@" |
---|
20 | else |
---|
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... |
---|
25 | END |
---|
26 | exec xpra "$@" |
---|
27 | fi |
---|