#1
|
|||
|
|||
command to open link in browser (firefox)
Hi,
OS: ubuntu 13.04 Jdownloader 2 beta Please, what is the correct command to open link in browser /firefox/ Under the advanced settings there is a line where I can set it> CommandLine to open a link in a browser. Use %s as wildcard for the url but I can not figure out what is the correct command. kind regards pepo |
#2
|
||||
|
||||
/usr/bin/firefox
|
#3
|
|||
|
|||
well, i have already tried this, but I get this error:
'/usr/bin/firefox' is not a valid 'String[]' |
#4
|
|||
|
|||
have found this site with some commands
**External links are only visible to Support Staff****External links are only visible to Support Staff** Here some of them: Code:
if (Desktop.isDesktopSupported()) { Desktop desktop = Desktop.getDesktop(); if (desktop.isSupported(Desktop.Action.BROWSE)) { try { desktop.browse(new URI("**External links are only visible to Support Staff**)); } catch(IOException ioe) { ioe.printStackTrace(); } catch(URISyntaxException use) { use.printStackTrace(); } } } Code:
try { String url = "http://www.google.com"; java.awt.Desktop.getDesktop().browse(java.net.URI.create(url)); } catch (java.io.IOException e) { System.out.println(e.getMessage()); } pepo Last edited by pepo.k; 20.11.2013 at 09:00. |
#5
|
||||
|
||||
have you tried with only "firefox"? Or %firefox%
is Firefox youre default Browser? You can reset the Option, to the default, in the advance options. I have Ubuntu 12.04, and when i make the right klick in a Package > open in Browser, FF is opening... |
#6
|
|||
|
|||
Hi eisbaer,
I have tried already both "firefox" and %firefox%, but it brings the same error comment is not valid string, like: Code:
'%firefox%' is not a valid 'String[]' Code:
'"firefox"' is not a valid 'String[]' Firefox is my default browser, atleast Firefox itself is in the options saying that. I have no other browser installed. And also from other programs when I click help, firefox opens ... Quote:
Code:
null Code:
'...' is not a valid 'String[]' When I right click on a package and choose to open in browser, it comes jdownloader pop-up, where the link is possible to copy out as plain text from some kind of messagebox. |
#7
|
||||
|
||||
I dont know where the isue is.
Try a Parallel Installation of JD, and look if the isue is in the new instalation... |
#8
|
|||
|
|||
Quote:
Eisbaer, what do you have in advanced options under commandline to open link in browser? Which value? I have only 'null'. |
#9
|
||||
|
||||
Quote:
Quote:
Try this: Rename the cfg Folder to cfg.back (to finde under the parent Folder of JD) and start JD again. |
#10
|
|||
|
|||
Quote:
Does help some log or what ever info else. Could somebody help me? |
#11
|
||||
|
||||
Come to the Support chat, between 9:00 and 17:00 Mo -Fr
and ask for Coalado or a another Developer. |
#12
|
||||
|
||||
This value needs a json array.
That means: Code:
[ "/usr/bin/firefox", "%s" ]
__________________
|
#13
|
|||
|
|||
Quote:
thanks very well. Now is going everything. pepo |
|
|