How can I start the same prism-application more than one time?

3 views
Skip to first unread message

ml

unread,
Dec 1, 2009, 11:41:21 PM12/1/09
to mozilla-labs-prism
How can I start the same prism-application more than one time?

If I try to start it a second time only prim is brought to top of the
desktop.

Jason Miller

unread,
Dec 2, 2009, 12:19:54 AM12/2/09
to mozilla-l...@googlegroups.com
As far as I know it is not possible. Prism applications require unique names to operate side by side. You can duplicate the application folder and change the name and ID in the second app's configuration file.

If you think about the desktop application paradigm, it doesn't make sense to have two identical applications running at the same time. For example, you cannot open two instances of Firefox at the same time - on Linux and Winows, launching the application multiple times just makes calls the the running instance of Firefox requesting new windows to be opened.

Two identical windows within the same application, however, would make sense and is possible using window.open from within Prism. You could use the webapp.js script to append a button to your prism app that opens a second Prism window for the same URL.

- Jason

Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more
--

You received this message because you are subscribed to the Google Groups "mozilla-labs-prism" group.
To post to this group, send email to mozilla-l...@googlegroups.com.
To unsubscribe from this group, send email to mozilla-labs-pr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mozilla-labs-prism?hl=en.


Mark J. Reed

unread,
Dec 2, 2009, 3:15:12 PM12/2/09
to mozilla-l...@googlegroups.com
On Wed, Dec 2, 2009 at 12:19 AM, Jason Miller <ja...@developit.ca> wrote:
If you think about the desktop application paradigm, it doesn't make sense to have two identical applications running at the same time.

That depends on the application and the OS environment.  Macs don't support having multiple instances of a single application, but some Windows applications work that way.  Notepad doesn't support multiple windows, for instance, but will happily let you have multiple copies of itself running.

> For example, you cannot open two instances of Firefox at the same time - on Linux and Windows,
> launching the application multiple times just makes calls the the running instance of Firefox requesting
> new windows to be opened.

On the other hand, that wasn't always true even of Firefox; at one time you had to explicitly pass the '-remote' option to avoid starting a new instance of the browser.
--
Mark J. Reed <mark...@gmail.com>

Jason Miller

unread,
Dec 2, 2009, 3:19:21 PM12/2/09
to mozilla-l...@googlegroups.com
For good measure, I would say that Windows Notepad is not an example of efficiently crafted software.
This is almost certainly the reason Firefox removed the need for the -remote option. In a document-centric application like a web browser, a window cannot be equated with an application. The overhead of having two separate instances of the same application instead of one application and two windows is simply unnecessary.

- Jason

Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more

On Wed Dec 02 2009 15:15:12 GMT-0500 (EST), Mark J. Reed wrote:
On Wed, Dec 2, 2009 at 12:19 AM, Jason Miller <ja...@developit.ca> wrote:
If you think about the desktop application paradigm, it doesn't make sense to have two identical applications running at the same time.
That depends on the application and the OS environment. Macs don't support having multiple instances of a single application, but some Windows applications work that way. Notepad doesn't support multiple windows, for instance, but will happily let you have multiple copies of itself running.

> For example, you cannot open two instances of Firefox at the same time - on Linux and Windows,
> launching the application multiple times just makes calls the the running instance of Firefox requesting
> new windows to be opened.

On the other hand, that wasn't always true even of Firefox; at one time you had to explicitly pass the '-remote' option to avoid starting a new instance of the browser.
--
Mark J. Reed <mark...@gmail.com>

Matthew Gertner

unread,
Dec 15, 2009, 11:25:32 AM12/15/09
to mozilla-l...@googlegroups.com
The Prism apps don't have to have different names, but they do have to have different profile directories. We don't support the profile manager (just checked and there seems to be some issue), but you could make copies of the default profile directory and point to the using the -profile command-line flag (with the full path to the profile directory) when you run each instance. As long as each instance has its own profile directory it will open in its own process.
Reply all
Reply to author
Forward
0 new messages