You are here

PAL & temp folders

6 posts / 0 new
Last post
prapper
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2008-01-24 17:01
PAL & temp folders

Secondary instances (as opposed to secondary launches) create the folder AppnamePortable\Data\Temp. Is that right?

Also, if launched from another portable app (ie: portable file manager), the app's plugins folder is in the file manager's temp folder:

[PortableApps.comLauncher]
Status=running
PluginsDir=C:\DOCUME~1\xxx\LOCALS~1\Temp\Explorer++PortableTemp\nshFD.tmp

So if the file manager is closed first, it can't delete its own temp folder.

Tested with:
FoxitReaderPortable (secondary launch goes to first instance).
SMPlayerPortable (secondary launch opens second instance).
Explorer++Portable (the portable file manager).

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Rebuild

Can you rebuild the launchers with PAL 2.2?

Previously known as kAlug.

prapper
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2008-01-24 17:01
Same in 2.2

Same in 2.2 except that now *all* secondary launches (regardless of whether they create a new instance) create AppnamePortable\Data\Temp.

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Maybe...

I believe this behavior has been somehow triggered by this change.

By the way, do you want to be the Official PortableApps.com Launcher's Tester? Smile

EDIT: We can't change the location of $PLUGINSDIR. Maybe if we make the launcher fix $TEMP and then relaunch itself.

Previously known as kAlug.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Original behaviour was intentional

I suppose I didn't notice that change at the time or didn't think much about it. It was reading it from the file on purpose; $WaitForProgram is intentionally set to false for secondary launches (see Segments\InstanceManagement.nsh, line 33). This is a regression; we need to analyse it more fully to make the correct fix.

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

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Change also on purpose

Changeset log
This allows us to modify the value of WaitForProgram at runtime.

And the parent changeset is Made WaitForProgram=false be ignored when Live mode is enabled.
Also, here is the IRC log of July 23.
We need to understand a) what's going on and b) why was the change made at first place.

/* @prapper: Can you test it on PAL 2.1 (no 2.1.1)? */

Previously known as kAlug.

Log in or register to post comments