-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
guess the xorg path in tests #308
Conversation
Good catch. It is also mentioned here: https://github.com/neutrinolabs/xrdp/blob/cc7d5ef921938ff4a04e6efe5d0228712abaf471/sesman/sesman.ini.in#L138 |
I wrote a loop to guess the xorg path |
Xorg
is located at /usr/lib/Xorg
@jat001 - very sorry. The positional parameters are used for XORG_ARGS later in the file. I didn't check carefully enough. I can give you a couple of options:-
--- a/tests/xorg-test-run.sh
+++ b/tests/xorg-test-run.sh
@@ -2,8 +2,8 @@
# Test that Xorg can load the compiled modules
-# X server to run
-if [ -z "$XORG" ]; then
+FindXorg()
+{
set -- \
/usr/local/libexec/Xorg \
/usr/libexec/Xorg \
@@ -13,14 +13,17 @@ if [ -z "$XORG" ]; then
for path in "$@"; do
if [ -x "$path" ]; then
- XORG=$path
- break
+ echo "$path"
+ exit
fi
done
- if [ -z "$XORG" ]; then
- XORG=Xorg
- fi
+ echo "Xorg"
+}
+
+# X server to run
+if [ -z "$XORG" ]; then
+ XORG=$(FindXorg)
fi
# Client to connect to Xorg
Use whatever work best for you. |
Signed-off-by: Jat <jat@sinosky.org>
@matt335672 that's why I don't like posix sh LOL |
Thanks @jat001. I really shouldn't propose changes without testing them.
|
No description provided.