You are here

PAL problem (Popman)

7 posts / 0 new
Last post
Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
PAL problem (Popman)

Popman (smal email client) has support for a "bigger" email client like Thunderbird. The path to that app is stored in an ini file as EmailClient=C:\PortableApps\ThunderbirdPortable\ThunderbirdPortable.exe.
Adding support for portability is easy (replace the drive letter). But adding support for path portability is hard because %PAL:PartialPath% doesnt work as it isnt the apps path that is needed but the path to Thunderbird Portable.

Does anyone know a fix for this?

Maybe it can be done with CustomCode but I didnt find a way to get it done. Or maybe its too difficult and its not worth it.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 5 months 2 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
A few ways to do it

There's a few ways to do it. The easiest is to add a filewrite (replace) for %PAL:PortableAppsDir%.

You could also hard-code an environment variable for Thunderbird Portable, but as this particular setting is user-configurable, I wouldn't recommend it.

[EDIT]

Here's the three ways I would suggest doing it. Note that the second won't work if we get any more email clients released.

1. FileWrite replacing PAL:PortableAppsDir: http://pastebin.com/QnJRvGLr
2. Hard-coding Thunderbird Portable into the launcher: http://pastebin.com/uvP55rnF
3. User-configurable option: launcher.ini and Custom.nsh and add "EmailClient=" to Other\Source\PopManPortable.ini

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

PAL:PortableAppsDir is an absolute path, not a drive-relative path.

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

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
right

so it should be
#
[Environment]
#
ThunderbirdPortable=%PAL:PortableAppsDir%\ThunderbirdPortable\ThunderbirdPortable.exe,
right?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

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

It's still not a proper solution. And the definition of an extra environment variable for it is entirely unnecessary. PAL 2.2 will be able to help significantly with this sort of a replacement case.

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

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Thanks Gord

I think I'll go with the first option as that will allow users to set a local Thunderbird copy and it will work too.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 5 months 2 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
You're welcome.

You're welcome, I'm glad to have been able to help.

Log in or register to post comments