You are here

Eclipse Portable, RunLocally + Restarts

12 posts / 0 new
Last post
gluxon
gluxon's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2008-06-21 19:26
Eclipse Portable, RunLocally + Restarts

Okay... I'm running into a problem with Eclipse Portable and I've thought for days about work-arounds but came up with none.

This is what happens...

Eclipse Portable launches with RunLocally function.
App is copied to System.
App is launched.

Now here's where the problem starts...

if the user changes workspace... at the current moment, eclipse.exe will close and start-up again, but the problem is that EclipsePortable.exe DELETE'S THE APP DIR!!!

Please suggest an idea, I'm stuck. Sad

Thanks.

John T. Haller
John T. Haller's picture
Online
Last seen: 7 min 29 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Loop

You need to add a loop to wait and check for it. Check out the loop in Firefox Portable's launcher after the ExecWait that does the exact same thing. It should do the same thing for a run from the drive if the launcher needs to stick around and do something when it exits.

Sometimes, the impossible can become possible, if you're awesome!

gluxon
gluxon's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2008-06-21 19:26
Thanks :)

Thanks Smile

Chris suggested looking at the Firefox Portable source... but I didn't really understand it and didn't really know what I was looking for.

[Edit: Wait... I just looked at the source, it's similar to what I use in IEE. It only works because there's only going to be one firefox.exe process. If I add the loop, I'll have to give up the ability for the user to run 2 eclipse processes. Is there another way?]

gluxon
gluxon's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2008-06-21 19:26
Um...

I thought of a solution while in the shower... (I solve all my problems that way).

It's a little messy and unprofessional, but it works.

While Eclipse is running, it uses the workspace directory. So my idea ties in with that. The launcher will backup the workspace every 2 minutes or something, and then, delete it as well. Then it'll check to see if any files are left, and repeat the process if there are. If nothing is remaining, it'll put the files back anyway and start deleting eclipse's local copy.

It's messy, screws up the CPU a bit, but it works...

To Reader: What's your opinion? Take another shower... leave RunLocally ditched, or use this idea since it's the only I can come up with.

OliverK
OliverK's picture
Offline
Last seen: 2 years 10 months ago
Developer
Joined: 2007-03-27 15:21
meh, don't use kludges.

meh, don't use kludges. There bound to cause more problems. Plus, that would set you back Shock

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
What's RunLocally?

I couldn't find in on the NSIS site...

Insert original signature here with Greasemonkey Script.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Live mode

It's a feature of (some of) our launchers where it copies what's needed to the local machine, runs it, and scraps it after: for running from read-only media like CDs.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
Firefox

Is it there for Firefox?
And, how would I implement it?

Insert original signature here with Greasemonkey Script.

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-06-18 13:55
Here:

Things have got to get better, they can't get worse, or can they?

gluxon
gluxon's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2008-06-21 19:26
Yeah...

Yeah... It's in there for most PortableApps.

Didn't I tell you to use RunLocally it on firefox in that "What Browser" Topic you made? Blum

I'm just surprised the PortableApps developer I looked up to didn't know what it was!

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
Stop Flattering me...

I've been gone for a year...
I sorta wish the launcher could copy it back though...

Insert original signature here with Greasemonkey Script.

gluxon
gluxon's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2008-06-21 19:26
What? There's no reason

What? There's no reason to...

RunLocally just copies the app over to a system folder, so it would run faster, but slowing down start up at the cost, then deletes it when it finishes.

Log in or register to post comments