Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch() doesn't seem to work as described #4667

Closed
theluckyfellow opened this issue Sep 17, 2016 · 6 comments
Closed

launch() doesn't seem to work as described #4667

theluckyfellow opened this issue Sep 17, 2016 · 6 comments

Comments

@theluckyfellow
Copy link

I'm using Ubuntu 16.04

I have launch() working in Windows, but I'm having issues under Linux.

First I tried:
launch("/usr/bin/lame", "/home/name/test.wav", "/home/name/test.mp3");
nothing...

Next I tried:
launch("lame", "/home/name/test.wav", "/home/name/test.mp3");
nothing...

According to the reference, one of these should work... "On Linux, it first tries gnome-open, then kde-open, but if neither are available, it sends the command to the shell without any alterations."

@gohai
Copy link
Contributor

gohai commented Sep 17, 2016

What happens if you put the arguments in an array?

@theluckyfellow
Copy link
Author

theluckyfellow commented Sep 18, 2016

That's actually what I normally do in the rest of the code. It also doesn't work.

  String[] params2 = { "/usr/bin/lame", "/home/name/test.wav", "/home/name/test.mp3"};
  launch(params2);

nor

  String[] params2 = { "lame", "/home/name/test.wav", "/home/name/test.mp3"};
  launch(params2);

I have lame installed. When I type lame /home/name/test.wav /home/name/test.mp3 into the terminal, it works fine.

@benfry
Copy link
Contributor

benfry commented Sep 20, 2016

Aren't you looking for exec() not launch()?

@theluckyfellow
Copy link
Author

Well that works fine... Thank you!
I suppose the documentation isn't foolproof, with me playing the part of the fool here :-)

Also, Benfry just responded to my post! I did a little dance...

@benfry
Copy link
Contributor

benfry commented Sep 24, 2016

Sorry, just realized that exec() isn't documented in the main reference—no wonder people are getting confused. I've updated the launch() documentation to be clearer, and we'll look into adding a mention of exec().

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants