issue with starting apps: command line vs. gui

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












First off, relevant specs:



  • Arch Linux x86_64

  • Thinkpad T450s

  • Kernel: 4.13.12-1-ARCH

  • Shell: zsh 5.4.2

  • WM: i3 + Ly (w/ polybar, rofi)

I am having a problem with getting MATLAB to launch from rofi, or even from a menu in polybar. It starts perfectly fine when I invoke the "matlab" command from the terminal, but whenever I attempt to use a gui solution (such as dmenu or rofi, or the menu module in polybar) to launch it, the MathWorks splash screen appears for a second, closes, and pings a system beep. I am an intermediate level linux user, and have exhausted all of my best attempts at deriving a solution. Help!



edit: also, matlab is in my $PATH







share|improve this question
























    up vote
    1
    down vote

    favorite












    First off, relevant specs:



    • Arch Linux x86_64

    • Thinkpad T450s

    • Kernel: 4.13.12-1-ARCH

    • Shell: zsh 5.4.2

    • WM: i3 + Ly (w/ polybar, rofi)

    I am having a problem with getting MATLAB to launch from rofi, or even from a menu in polybar. It starts perfectly fine when I invoke the "matlab" command from the terminal, but whenever I attempt to use a gui solution (such as dmenu or rofi, or the menu module in polybar) to launch it, the MathWorks splash screen appears for a second, closes, and pings a system beep. I am an intermediate level linux user, and have exhausted all of my best attempts at deriving a solution. Help!



    edit: also, matlab is in my $PATH







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      First off, relevant specs:



      • Arch Linux x86_64

      • Thinkpad T450s

      • Kernel: 4.13.12-1-ARCH

      • Shell: zsh 5.4.2

      • WM: i3 + Ly (w/ polybar, rofi)

      I am having a problem with getting MATLAB to launch from rofi, or even from a menu in polybar. It starts perfectly fine when I invoke the "matlab" command from the terminal, but whenever I attempt to use a gui solution (such as dmenu or rofi, or the menu module in polybar) to launch it, the MathWorks splash screen appears for a second, closes, and pings a system beep. I am an intermediate level linux user, and have exhausted all of my best attempts at deriving a solution. Help!



      edit: also, matlab is in my $PATH







      share|improve this question












      First off, relevant specs:



      • Arch Linux x86_64

      • Thinkpad T450s

      • Kernel: 4.13.12-1-ARCH

      • Shell: zsh 5.4.2

      • WM: i3 + Ly (w/ polybar, rofi)

      I am having a problem with getting MATLAB to launch from rofi, or even from a menu in polybar. It starts perfectly fine when I invoke the "matlab" command from the terminal, but whenever I attempt to use a gui solution (such as dmenu or rofi, or the menu module in polybar) to launch it, the MathWorks splash screen appears for a second, closes, and pings a system beep. I am an intermediate level linux user, and have exhausted all of my best attempts at deriving a solution. Help!



      edit: also, matlab is in my $PATH









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 29 '17 at 13:57









      bieberman

      62




      62




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          After much searching, I pieced together something that works pretty well for the polybar menu. If you create a script somewhere in your $PATH, lets name it matlab_desktop, and include the code (what i included):



          #!/usr/bin/env zsh
          /path_to_matlab/matlab -desktop


          then have polybar point to matlab_desktop instead of matlab, then the polybar menu will run it. It will also show up in dmenu/rofi since it is in the path. No idea why this works, but it does!



          I realize this answer is specific to matlab, but I am sure it is applicable to any other application that will not start in dmenu/rofi/etc.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407747%2fissue-with-starting-apps-command-line-vs-gui%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            After much searching, I pieced together something that works pretty well for the polybar menu. If you create a script somewhere in your $PATH, lets name it matlab_desktop, and include the code (what i included):



            #!/usr/bin/env zsh
            /path_to_matlab/matlab -desktop


            then have polybar point to matlab_desktop instead of matlab, then the polybar menu will run it. It will also show up in dmenu/rofi since it is in the path. No idea why this works, but it does!



            I realize this answer is specific to matlab, but I am sure it is applicable to any other application that will not start in dmenu/rofi/etc.






            share|improve this answer
























              up vote
              0
              down vote



              accepted










              After much searching, I pieced together something that works pretty well for the polybar menu. If you create a script somewhere in your $PATH, lets name it matlab_desktop, and include the code (what i included):



              #!/usr/bin/env zsh
              /path_to_matlab/matlab -desktop


              then have polybar point to matlab_desktop instead of matlab, then the polybar menu will run it. It will also show up in dmenu/rofi since it is in the path. No idea why this works, but it does!



              I realize this answer is specific to matlab, but I am sure it is applicable to any other application that will not start in dmenu/rofi/etc.






              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                After much searching, I pieced together something that works pretty well for the polybar menu. If you create a script somewhere in your $PATH, lets name it matlab_desktop, and include the code (what i included):



                #!/usr/bin/env zsh
                /path_to_matlab/matlab -desktop


                then have polybar point to matlab_desktop instead of matlab, then the polybar menu will run it. It will also show up in dmenu/rofi since it is in the path. No idea why this works, but it does!



                I realize this answer is specific to matlab, but I am sure it is applicable to any other application that will not start in dmenu/rofi/etc.






                share|improve this answer












                After much searching, I pieced together something that works pretty well for the polybar menu. If you create a script somewhere in your $PATH, lets name it matlab_desktop, and include the code (what i included):



                #!/usr/bin/env zsh
                /path_to_matlab/matlab -desktop


                then have polybar point to matlab_desktop instead of matlab, then the polybar menu will run it. It will also show up in dmenu/rofi since it is in the path. No idea why this works, but it does!



                I realize this answer is specific to matlab, but I am sure it is applicable to any other application that will not start in dmenu/rofi/etc.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 29 '17 at 18:41









                bieberman

                62




                62



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407747%2fissue-with-starting-apps-command-line-vs-gui%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)