-
Notifications
You must be signed in to change notification settings - Fork 380
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
Can't run x11docker within script. #176
Comments
Does the same command work if you run it directly? I just did a test run on tty with command Can you show me
However, this configuration should only be needed if running |
It runs fine if I run it directly. Correct, it's on tty.
The file includes some comments that I've removed. I've been able to overcome it by using xpra, but surely I shouldn't have to? |
xpra would not run directly on tty and x11docker uses Can you please run without Can you show me the output of command |
|
It seems that command It seems this time you run in X, not from tty, right? Please update to latest master version of x11docker and try again. |
This has introduced a bug, option $ x11docker --version
/usr/bin/env: invalid option -- 'S'
Try '/usr/bin/env --help' for more information.
$ /usr/bin/env --help
Usage: /usr/bin/env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Set each NAME to VALUE in the environment and run COMMAND.
Mandatory arguments to long options are mandatory for short options too.
-i, --ignore-environment start with an empty environment
-0, --null end each output line with NUL, not newline
-u, --unset=NAME remove variable from the environment
-C, --chdir=DIR change working directory to DIR
--help display this help and exit
--version output version information and exit
A mere - implies -i. If no COMMAND, print the resulting environment.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/env>
or available locally via: info '(coreutils) env invocation' |
Thanks for reporting this. I have removed this and switched back to Parsing the shebang seems to be quite different across the *nixes, and there is no general solution: https://stackoverflow.com/a/4304187 So x11docker cannot set bash options In your script you can replace |
Works! Re
I'm not sure if |
Great! But:
A good idea, but it seems there is a bug in bash. Sometimes it works, and sometimes I get:
This occured in my first tests with For the record, my implementation:
|
I have added a new experimental option
With additional bash options |
Seems to work. however, what's strange is that I removed all these additional options, and ran it, and this time it works fine. Reason I did that is because I saw the |
Ok, I see. Probably your script will fail without Good that you mention |
Sorry, I'm not sure I understand. I still don't really fully understand tty and pts and the like. How can I test this? |
You could switch to a console with CTRL+ALT+F2 and run your script there.
For the differences:
x11docker makes some decisions depending on the output of
x11docker did not catch Now x11docker catches the |
Ah, cool. Okay, so, I tried it on multiple console, and it seems to be working without |
Thank you for your tests! |
Thanks for the fix @mviereck |
Trying to run x11docker from within a script, however, xorg refuses to run. Error is as follows:
Trying to run it simply using:
Have had this issue previously while doing something else, but was unable to fix it. Any ideas how I can get this running?
The text was updated successfully, but these errors were encountered: