How do I make an application think it is running from desktop server (e.g gdm3)?gdm only starts an xterm; how to get back my desktop?login window not showingGDM Starting Twice?GDM and Lightdm don't work after update; KDM is okHow to get OpenGL Shader Language 1.4 working with Intel HD Graphics 4000? (Trusty/14.04)Starting the GUI terminal with specific variablesHow to fix GDM3 Login loop (Ubuntu 16.04 LTS)

Why use Fourier series instead of Taylor?

Is it possible to use gases instead of liquids as fuel in a rocket engine?

At what point in time would humans notice a 21st century satellite observing them?

Can you have a permanent become all permanent types at the same time?

Just bought HD650's with Scarlet 2i2 solo and it sounds too QUIET

delete specific character "[" from a file

Who is this famous person?

Black powder machine gun in an airplane

Paying to leave without notice in at-will employment state

Why rounding odd font sizes to even?

Customize sysctl parameters by user

Does anyone know a basepoint-free construction of universal covers?

What was meant by the protest sign "Bundestag nach Berlin"?

Was there a clearly identifiable "first computer" to use or demonstrate the use of virtual memory?

In a topological space, if a subset is both closed and open then is the toplogy discrete?

The Floer Equation is Elliptic

How to determine the degree to which diminished seventh chords and half-diminished seventh chords belong in major scales?

What is the maximum number of squares 8 queens and 8 nightriders can attack on a 16x16 board?

Object Oriented Programming - how to avoid duplication in processes that differ slightly depending on a variable

Why is this logic incorrect?

Using footnotes in fiction: children's book which can be enjoyed by adults

How to manage publications on a local computer

I have stack-exchanged through my undergrad math program. Am I likely to succeed in mathematics PhD programs?

Is it possible to get reverse life insurance?



How do I make an application think it is running from desktop server (e.g gdm3)?


gdm only starts an xterm; how to get back my desktop?login window not showingGDM Starting Twice?GDM and Lightdm don't work after update; KDM is okHow to get OpenGL Shader Language 1.4 working with Intel HD Graphics 4000? (Trusty/14.04)Starting the GUI terminal with specific variablesHow to fix GDM3 Login loop (Ubuntu 16.04 LTS)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I have an application binary that works fine if I run it from a terminal in an windows environment (say gdm).



If I run it from raw console (Ctrl+Alt+F3), it emits errors.



But I do need to run this from console.



Is there any way I can run it from console, but make it 'think' it is running from a terminal in a windows environment?



What I tried -



  • I already tried "export DISPLAY=:0", which didn't do the trick.

  • I suspect it depends on a graphics library, may be opengl for some computations, which is not properly initialized if I run from console.









share|improve this question
































    0

















    I have an application binary that works fine if I run it from a terminal in an windows environment (say gdm).



    If I run it from raw console (Ctrl+Alt+F3), it emits errors.



    But I do need to run this from console.



    Is there any way I can run it from console, but make it 'think' it is running from a terminal in a windows environment?



    What I tried -



    • I already tried "export DISPLAY=:0", which didn't do the trick.

    • I suspect it depends on a graphics library, may be opengl for some computations, which is not properly initialized if I run from console.









    share|improve this question




























      0












      0








      0








      I have an application binary that works fine if I run it from a terminal in an windows environment (say gdm).



      If I run it from raw console (Ctrl+Alt+F3), it emits errors.



      But I do need to run this from console.



      Is there any way I can run it from console, but make it 'think' it is running from a terminal in a windows environment?



      What I tried -



      • I already tried "export DISPLAY=:0", which didn't do the trick.

      • I suspect it depends on a graphics library, may be opengl for some computations, which is not properly initialized if I run from console.









      share|improve this question















      I have an application binary that works fine if I run it from a terminal in an windows environment (say gdm).



      If I run it from raw console (Ctrl+Alt+F3), it emits errors.



      But I do need to run this from console.



      Is there any way I can run it from console, but make it 'think' it is running from a terminal in a windows environment?



      What I tried -



      • I already tried "export DISPLAY=:0", which didn't do the trick.

      • I suspect it depends on a graphics library, may be opengl for some computations, which is not properly initialized if I run from console.






      command-line xorg gdm opengl






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 30 at 18:14









      KalElKalEl

      1,7511 gold badge10 silver badges4 bronze badges




      1,7511 gold badge10 silver badges4 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          2


















          Your question, "How can I run a Graphical User Interface (GUI) program in a non-GUI environment?" can't be done. The program depends on the GUI to open windows, etc.



          If you had said which program, maybe someone could suggest a Command Line Interface (CLI) equivalent.



          If there is another X windows display available (and where you want the program's output to be displayed) on localhost, or even on your LAN, read man xhost.






          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1162200%2fhow-do-i-make-an-application-think-it-is-running-from-desktop-server-e-g-gdm3%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2


















            Your question, "How can I run a Graphical User Interface (GUI) program in a non-GUI environment?" can't be done. The program depends on the GUI to open windows, etc.



            If you had said which program, maybe someone could suggest a Command Line Interface (CLI) equivalent.



            If there is another X windows display available (and where you want the program's output to be displayed) on localhost, or even on your LAN, read man xhost.






            share|improve this answer






























              2


















              Your question, "How can I run a Graphical User Interface (GUI) program in a non-GUI environment?" can't be done. The program depends on the GUI to open windows, etc.



              If you had said which program, maybe someone could suggest a Command Line Interface (CLI) equivalent.



              If there is another X windows display available (and where you want the program's output to be displayed) on localhost, or even on your LAN, read man xhost.






              share|improve this answer




























                2














                2










                2









                Your question, "How can I run a Graphical User Interface (GUI) program in a non-GUI environment?" can't be done. The program depends on the GUI to open windows, etc.



                If you had said which program, maybe someone could suggest a Command Line Interface (CLI) equivalent.



                If there is another X windows display available (and where you want the program's output to be displayed) on localhost, or even on your LAN, read man xhost.






                share|improve this answer














                Your question, "How can I run a Graphical User Interface (GUI) program in a non-GUI environment?" can't be done. The program depends on the GUI to open windows, etc.



                If you had said which program, maybe someone could suggest a Command Line Interface (CLI) equivalent.



                If there is another X windows display available (and where you want the program's output to be displayed) on localhost, or even on your LAN, read man xhost.







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Jul 30 at 18:37









                waltinatorwaltinator

                25.2k7 gold badges43 silver badges74 bronze badges




                25.2k7 gold badges43 silver badges74 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1162200%2fhow-do-i-make-an-application-think-it-is-running-from-desktop-server-e-g-gdm3%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?