You are here

FocusWriter 1.4.4 with improved launcher.ini

5 posts / 0 new
Last post
P. Audite
Offline
Last seen: 10 years 2 months ago
Joined: 2013-08-27 17:20
FocusWriter 1.4.4 with improved launcher.ini

Hi there!
I'm a newbie here and unsure if that is the rigt way.

For the time being I've improved the FocusWriter launcher.ini for a better portable support. I've also added an online installer.

So, please test it and let me know your opinion.

FocusWriter1.4.4 improved

md5: 1c96f7790d78fe79b4946ffe22a4f225

Ken Herbert
Ken Herbert's picture
Online
Last seen: 19 min 39 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
Thanks for helping

... but you don't need to create a whole new package for an app, please just report the issues you've seen in the app's thread (if it is a beta test), or the app's own Support forum/the Other Apps Support forum (if it is an official app).

Changes I agree with:

  • Qt keys need to be updated from 4.7 to 4.8
  • Removal of [RegistryKeys] and [RegistryCleanupIfEmpty] as the app no longer creates these from what my quick test showed

Changes I disagree on (or that have issues):

  • Online installers are only used when we don't have legal permission to redistribute freeware, or when the developer specifically asks for it. As such FocusWriter will not be moving to an online installer as it is open source and thus we have permission to bundle it.
  • Unless the app uses an Environment variable called FocusDocuments, you shouldn't create this as an environment variable, but just have Value=%PortableApps.comDocuments:ForwardSlash%/Focus Documents in your [FileWrite3]
  • That being said, this would restrict the save location to always be eg. D:\Documents which is a bad thing. The user should have the right to choose where their save location is, whether on the same drive as the app or not, so if they want to have their save location as D:\Floob, then they should be allowed to so your [FileWrite3] and your [Environment] should be removed as this path would be handled by [FileWrite1] & [FileWrite2].
  • As far as I remember [FileWrite] does not yet support wildcards, so your [FileWrite4] and [FileWrite5] won't actually do anything. A future version of the Launcher is set to handle wildcards within a [FileWrite], but for now we can't support FocusWriter's sessions without custom NSIS code being written for it.
P. Audite
Offline
Last seen: 10 years 2 months ago
Joined: 2013-08-27 17:20
OK, I'm here to learn

But let me say one or two things:
The Environment - ok. It isn't necessary, but if you store your files on a Portable Drive it can help for better file handling.
The user can change it simply, if he don't like this.

Wildcards - There you're mistaken! Believe me, I use this program daily and it works very fine with this wildcards! Even more. The Sessions handling without this wildcards are impossible.

But Thank you for your Opinion and suggestions.

And now, I have question:
I've re-compiled the Abiword porgram in the 3.0 format. Which is right place to post this (for testing, criticism, helping)?

Pierre

Ken Herbert
Ken Herbert's picture
Online
Last seen: 19 min 39 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
Save location It wouldn't be

Save location
It wouldn't be a problem if the save location was set once in DefaultData (so it is set on first run or with a clean Data directory) and just used normal path handling the rest of the time, but that [FileWrite] will reset the save location on every run. Users are not meant to and should not be expected to modify the launcher.ini to make an app work as they expect, so it should be left out and just let the normal path handling take care of it.

Wildcards
The documentation must be out of date then as it doesn't say anything about supporting wildcards in the [FileWrite] section of the manual.

Abiword
Post it in the beta test forum. Just make sure you post the necessary information (or use Dev Test Thread Builder) as for any beta test, but also state that it is a format update of the official app in the thread. I can't guarantee John will use it, but if you want to post it I will check it over.

P. Audite
Offline
Last seen: 10 years 2 months ago
Joined: 2013-08-27 17:20
OK , I see we have the same goal

Save location

Users are not meant to and should not be expected to modify the launcher.ini

I agree with you. OK, I change this

Wildcard
Btw, the launcher have a few secrets. Wildcards make the [FileWriteN]Section a bit easier to handle.

So, Here is the modified file

[Launch]
ProgramExecutable=FocusWriter\FocusWriter.exe
WorkingDirectory=%PAL:AppDir%\FocusWriter
DirectoryMoveOK=yes
SupportsUNC=yes

[DirectoriesMove]
FocusWriterData=%PAL:AppDir%\FocusWriter\data

[Activate]
Registry=true

[QtKeysCleanup]
1="Qt Factory Cache 4.8\com.trolltech.Qt.QImageIOHandlerFactoryInterface:"
2="Qt Plugin Cache 4.8.false"

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\FocusWriterData\Settings\GottCode\FocusWriter.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\FocusWriterData\Settings\GottCode\FocusWriter.ini
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\FocusWriterData\Sessions\*.session
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\FocusWriterData\Sessions\*.session
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

And? Usable?

AbiWord
OK, I try it Wink

Another Question
I've another 4 nice programs compiled, but without any permissions. Does it make sense to post it in the forum???

Log in or register to post comments