FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

don't launch browser when starting server

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
Morris Jones
Posted via mailing list.





PostPosted: Mon Jul 14, 2008 8:39 pm    Post subject: don't launch browser when starting server Reply with quote

Is there a way to get Netbeans to stop launching a browser when I start
its server (using Run Main Project or Debug Main Project)?

My environment: Netbeans and RoR app on Fedora 9 virtual machine, MKS
X-Server and Firefox on host Windows XP.

I don't want a Firefox instance launched under Fedora, I want my browser
on the Windows host, yet Netbeans always launches Firefox on Fedora
whether I want it or not.

In Tools | Options | General, my only available options are Firefox,
Mozilla, and Netscape. There's no option for "none, please!"

Mojo
--
Morris Jones
http://www.whiteoaks.com
Old Town Sidewalk Astronomers http://www.otastro.org
http://twitter.com/mojo_la

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Anthony Richardson
Posted via mailing list.





PostPosted: Mon Jul 14, 2008 10:24 pm    Post subject: don't launch browser when starting server Reply with quote

On Tue, Jul 15, 2008 at 6:09 AM, Morris Jones <mojo@whiteoaks.com (mojo@whiteoaks.com)> wrote:
Quote:
Is there a way to get Netbeans to stop launching a browser when I start its server (using Run Main Project or Debug Main Project)?

<snip>

In Tools | Options | General, my only available options are Firefox, Mozilla, and Netscape. There's no option for "none, please!"



Write a shell script that does nothing and then add a new browser (in the dialog you mention above) and make that the browser you use. Then Netbeans will execute your script (which does nothing) instead of launching a browser.

Cheers,

Anthony
Back to top
Morris Jones
Posted via mailing list.





PostPosted: Mon Jul 14, 2008 10:28 pm    Post subject: don't launch browser when starting server Reply with quote

Anthony Richardson wrote:
Quote:
Write a shell script that does nothing and then add a new browser (in
the dialog you mention above) and make that the browser you use. Then
Netbeans will execute your script (which does nothing) instead of
launching a browser.

ha! D'oh! Thank you. :)

Mojo
--
Morris Jones
http://www.whiteoaks.com
Old Town Sidewalk Astronomers http://www.otastro.org
http://twitter.com/mojo_la

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Martin Krauskopf
Posted via mailing list.





PostPosted: Mon Jul 14, 2008 10:34 pm    Post subject: don't launch browser when starting server Reply with quote

Morris Jones wrote:
Quote:
Is there a way to get Netbeans to stop launching a browser when I start
its server (using Run Main Project or Debug Main Project)?

My environment: Netbeans and RoR app on Fedora 9 virtual machine, MKS
X-Server and Firefox on host Windows XP.

I don't want a Firefox instance launched under Fedora, I want my browser
on the Windows host, yet Netbeans always launches Firefox on Fedora
whether I want it or not.

In Tools | Options | General, my only available options are Firefox,
Mozilla, and Netscape. There's no option for "none, please!"

I think it's not possible to turn this off. Could you file an RFE to the
IssueZilla[0]. Might be e.g. added to the Rails app as a checkbox.
Until then you might use Anthony's trick :)

m.

[0] let me know if you do not want, I'll do it. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Tor Norbye
Posted via mailing list.





PostPosted: Tue Jul 15, 2008 1:27 am    Post subject: don't launch browser when starting server Reply with quote

On Jul 14, 2008, at 3:33 PM, Martin Krauskopf wrote:

Quote:
Morris Jones wrote:
Quote:
Is there a way to get Netbeans to stop launching a browser when I
start its server (using Run Main Project or Debug Main Project)?
My environment: Netbeans and RoR app on Fedora 9 virtual machine,
MKS X-Server and Firefox on host Windows XP.
I don't want a Firefox instance launched under Fedora, I want my
browser on the Windows host, yet Netbeans always launches Firefox
on Fedora whether I want it or not.
In Tools | Options | General, my only available options are
Firefox, Mozilla, and Netscape. There's no option for "none,
please!"

I think it's not possible to turn this off. Could you file an RFE to
the IssueZilla[0]. Might be e.g. added to the Rails app as a checkbox.
Until then you might use Anthony's trick Smile

Yes, we should probably have a user visible option for this.

Until then (which probably won't happen in 6.5 since we have feature
freeze today) I added a simple flag you can set to turn off the Rails
server startup browser behavior. (This is better than replacing the
general IDE browser script, since there are probably are times when
you DO want the IDE to be able to open up the browser - for example
when you control click on URLs in RDoc links in your source files, and
so on.)

Here's what I added to http://wiki.netbeans.org/RubyOptions :

Don't Show Browser

As part of starting the Rails server, NetBeans also automatically
starts your browser and shows the application url. If you don't want
this, you can turn it off with

-J-Drails.nobrowser=true

You need build #2829 or later from http://deadlock.netbeans.org/hudson/job/trunk/
for this (hasn't kicked off yet but should be available in a couple
of hours.)

-- Tor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB