How to trick a command into thinking there is no X server running

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have this program that can run with both a text user interface and a graphical user interface.
It lacks any command line switch to force or the other, rather I guess it somehow autodetects whether we are in X or not (e.g. if I run it from a virtual terminal it enters its text mode, and if I run it from an X terminal emulator it opens a separate graphical window)
I'd like to force it into text mode and have it run inside the X terminal. How would I go about doing it?
x11
add a comment |Â
up vote
1
down vote
favorite
I have this program that can run with both a text user interface and a graphical user interface.
It lacks any command line switch to force or the other, rather I guess it somehow autodetects whether we are in X or not (e.g. if I run it from a virtual terminal it enters its text mode, and if I run it from an X terminal emulator it opens a separate graphical window)
I'd like to force it into text mode and have it run inside the X terminal. How would I go about doing it?
x11
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have this program that can run with both a text user interface and a graphical user interface.
It lacks any command line switch to force or the other, rather I guess it somehow autodetects whether we are in X or not (e.g. if I run it from a virtual terminal it enters its text mode, and if I run it from an X terminal emulator it opens a separate graphical window)
I'd like to force it into text mode and have it run inside the X terminal. How would I go about doing it?
x11
I have this program that can run with both a text user interface and a graphical user interface.
It lacks any command line switch to force or the other, rather I guess it somehow autodetects whether we are in X or not (e.g. if I run it from a virtual terminal it enters its text mode, and if I run it from an X terminal emulator it opens a separate graphical window)
I'd like to force it into text mode and have it run inside the X terminal. How would I go about doing it?
x11
x11
asked 34 mins ago
Luka AleksiÃÂ
83
83
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Usually just
unset DISPLAY
in command-line of the terminal. Some applications are smarter than that, and actually check permissions and type of the console versus pseudoterminal.
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Usually just
unset DISPLAY
in command-line of the terminal. Some applications are smarter than that, and actually check permissions and type of the console versus pseudoterminal.
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
add a comment |Â
up vote
2
down vote
accepted
Usually just
unset DISPLAY
in command-line of the terminal. Some applications are smarter than that, and actually check permissions and type of the console versus pseudoterminal.
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Usually just
unset DISPLAY
in command-line of the terminal. Some applications are smarter than that, and actually check permissions and type of the console versus pseudoterminal.
Usually just
unset DISPLAY
in command-line of the terminal. Some applications are smarter than that, and actually check permissions and type of the console versus pseudoterminal.
answered 28 mins ago
Thomas Dickey
50.6k588160
50.6k588160
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
add a comment |Â
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
Thanks. It worked.
â Luka AleksiÃÂ
25 mins ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476883%2fhow-to-trick-a-command-into-thinking-there-is-no-x-server-running%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
