issue with starting apps: command line vs. gui

Clash 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
scripting dmenu
add a comment |Â
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
scripting dmenu
add a comment |Â
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
scripting dmenu
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
scripting dmenu
asked Nov 29 '17 at 13:57
bieberman
62
62
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Nov 29 '17 at 18:41
bieberman
62
62
add a comment |Â
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%2f407747%2fissue-with-starting-apps-command-line-vs-gui%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