Last change
on this file since 5146 was
5146,
checked in by joamuran, 4 years ago
|
fixed
|
-
Property svn:executable set to
*
|
File size:
704 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # Screen Recording and Mirror |
---|
4 | # XServer XSDL |
---|
5 | |
---|
6 | DATA=`zenity --forms --title="Execute in Android" \ |
---|
7 | --text="Insert data given by XServer XSDL." \ |
---|
8 | --separator="*" \ |
---|
9 | --add-entry="DISPLAY" \ |
---|
10 | --add-entry="PULSE_SERVER" \ |
---|
11 | --add-entry="Apliccation"`; |
---|
12 | |
---|
13 | case $? in |
---|
14 | 0) |
---|
15 | |
---|
16 | item=0 |
---|
17 | while IFS='*' read -ra ADDR; do |
---|
18 | for i in "${ADDR[@]}"; do |
---|
19 | arr[$item]=$i |
---|
20 | ((item++)) |
---|
21 | done |
---|
22 | done <<< "$DATA" |
---|
23 | |
---|
24 | export DISPLAY=${arr[0]}; |
---|
25 | export PULSE_SERVER=${arr[1]} |
---|
26 | metacity & ${arr[2]} |
---|
27 | |
---|
28 | ;; |
---|
29 | -1) |
---|
30 | echo "An unexpected error has occurred." |
---|
31 | ;; |
---|
32 | esac |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.