Reputation: 1706
I'm using /bin/sh
to execute some commands, but some of those commands require me to have a "graphical terminal" which I don't really know what that means, those commands give wrong output on my software, but correct output on the normal Gnome/KDE
Terminal.
I was wondering if there is away to tell the underlying X Window Session
that my software is a "graphical terminal"?
Upvotes: 0
Views: 663
Reputation: 1256
If I understand correctly you are trying to run application on a remote machine or at least one that doesn't run any X Server. If that is the case you might try to use Xvfb which creates a virtual server which allows applications to connect to it and "draw" windows.
Upvotes: 1
Reputation: 29598
As @ugoren said, the DISPLAY
variable is what is used to find the X Window System from applications. If X is not running in the background, the variable will be unset.
You can start a new X server using xinit
from your script if you cannot talk to the old one; ideally, this would be something like Xvnc (which does not need hardware access).
Upvotes: 1
Reputation: 16441
Normally, software that uses X windows relies on the DISPLAY
environment variable.
It's value should be something like 10.0.0.1:0.0
, where 10.0.0.1 is your IP address (I'm not sure what 0.0
is, but 0.0
normally works).
You also need some X server software to run on your PC, which would show the window.
Upvotes: 0