Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Shorten/reduce 15-step Upgrade/Install workflow
Shorten/reduce 15-step Upgrade/Install workflow
 
   NeoOffice Forum Index -> NeoOffice New Feature Requests
View previous topic :: View next topic  

Do you agree or disagree that this would be a good improvement?
strongly agree
50%
 50%  [ 1 ]
agree
50%
 50%  [ 1 ]
don't care
0%
 0%  [ 0 ]
disagree
0%
 0%  [ 0 ]
strongly disagree
0%
 0%  [ 0 ]
Total Votes : 2

Author Message
djpimley
The Anomaly
(earlier version)


Joined: Jun 11, 2006
Posts: 481
Location: Great Britain

PostPosted: Mon Dec 19, 2011 3:50 pm    Post subject:

sardisson wrote:
/tmp and the temporary files are cleared once a week

Solution: Don't download the package to tmp. Wink Download the package to a location in ~/Library/Application Support/ which imho is the correct place for such a file.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Dec 19, 2011 7:16 pm    Post subject:

I don't know where everyone got the idea that the download would go to the /tmp folder as I made several changes to NeoOffice some time ago to force NeoOffice's underlying OpenOffice.org to not use /tmp or the user's private temporary folder if at all possible precisely because of Mac OS X's periodic deletion of files in those folders.

What I was planning on doing was downloading it to the either a new ~/Library/Application Support/NeoOffice folder or to the user's Downloads folder. Does anyone think that the user's Downloads folder is a good place to put these .dmg files? If not, I will use ~/Library/Application Support/NeoOffice.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue Dec 20, 2011 12:10 am    Post subject:

pluby wrote:
I don't know where everyone got the idea that the download would go to the /tmp folder as I made several changes to NeoOffice some time ago to force NeoOffice's underlying OpenOffice.org to not use /tmp or the user's private temporary folder if at all possible precisely because of Mac OS X's periodic deletion of files in those folders.

I guess I was confusing "storing the installer/dmg" with "unpacking the patch files during install" (which unpack to /tmp before being moved inside NeoOffice.app) Embarassed

pluby wrote:
What I was planning on doing was downloading it to the either a new ~/Library/Application Support/NeoOffice folder or to the user's Downloads folder. Does anyone think that the user's Downloads folder is a good place to put these .dmg files? If not, I will use ~/Library/Application Support/NeoOffice.

If the "install process" is going to delete the dmg afterward, then I suppose a hidden location like ~/Library/Application Support/NeoOffice is OK, but if it's not, you don't want a build-up of ~10 MB files over time in a hidden location.

My preference is for the user's Download folder either way, though; I think it's more transparent and is what some self-updating apps (Omni Group apps come to mind) already do. (I'd also prefer the downloaded .dmg not be deleted, so I can archive the patch, but I may be strange like that.)

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
djpimley
The Anomaly
(earlier version)


Joined: Jun 11, 2006
Posts: 481
Location: Great Britain

PostPosted: Tue Dec 20, 2011 3:06 am    Post subject:

pluby wrote:
Does anyone think that the user's Downloads folder is a good place to put these .dmg files?

I think Smokey's question is the key to that decision. If the package will be deleted after a successful install then I think Application Support is best (I know of users who would get confused at seeing a file suddenly appear in their downloads folder) but if the packages will be left in place then the Downloads folder is better because that location will be visible to the user and allow them to file manage.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Dec 20, 2011 11:22 am    Post subject:

I think that initially we should be cautious and leave the downloaded .dmg after installation. Since the current download process drops the .dmg files in the user's Downloads directly, I think leaving the downloaded .dmg there is a safe approach so I'll put the .dmg files there and not deleted them.

BTW, I noticed that our NeoOffice Mobile floating window does not make use of the resumable download functions that Apple's WebView provides. Given that about 1% of our donors report download problems (most likely due to flaky wireless or ISP connnections), adding attempts to resume a download if the download stops before all the bytes have been downloaded would be a very good idea.

Patrick
Back to top
johnwardale
Blue Pill


Joined: Sep 24, 2011
Posts: 3

PostPosted: Wed Jan 04, 2012 10:46 pm    Post subject: Auto Downloads ... Where and keep or remove?

Personally I think of my "Downloads" folder as the place for stuff that I requested be downloaded ... auto downloads ... not sure: a bit of auto-generated clutter, vs. hidden files ...

I assume that all the Patch files are cumulative from the base version, so I keep the current and previous base version, and the last Patch-file for each ... so I think I would like the patch file to be kept until the patch that supersedes it is installed, but I also fully admit that this request constitutes "Gold Plating" Smile
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Jan 18, 2012 10:18 am    Post subject:

Since I have not been able to find any time to work on this feature (each new year brings us a huge amount of tax and other regulatory paperwork to do), I was able to make some changes to our patch checking code on our webservers so that when there is a new version or new patch, the Download button in the NeoOffice dialog will go straight to the applicable download page. Previously, a couple of links had to be clicked when upgrading to a newer version.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jan 20, 2012 7:49 pm    Post subject:

I have just finished implementing the first part of this new feature request: eliminating the use of your default browser and, instead, performing the .dmg file download completely with NeoOffice.

There is still a lot more code that needs to be written before this new feature request is fully implemented but I wanted to get this first chunk of code out so that all of you can test it out while I am working on implementing the next steps.

To test out this first part of the new feature request, you will need to do the following steps:

1. Download and install the following test patch:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.2.1-Patch-3-Test-1-Intel.dmg

2. Down the following "versionrc" file to your Desktop by pasting the following command in a Terminal window and pressing the Return key. This file will be used to fool NeoOffice to act as if you have not installed the latest official patch:

Code:
cd ~/Desktop ; curl -O http://joe.neooffice.org/test/versionrc


3. In the Finder, right-click or Control-click on the NeoOffice application and in the popup menu that appears, select the "Show Package Contents". Then, navigation into NeoOffice's "Contents/MacOS" subfolder. Drag the "versionrc" file that you downloaded into step 2 into this subfolder. You will be prompted to replace the file and then to authenticate that you are a Mac OS X administrator.

4. If step 3 succeeds, select NeoOffice's Help :: Check for Updates menu. the dialog that appears should say that NeoOffice 3.2.1 Patch 3 is available. Press the Download button and you should see the patch download page running in a floating window similar to the NeoOffice Mobile floating window and the patch should be automatically downloaded to your Downloads folder.

Edited by pluby: update versionrc download step

Patrick


Last edited by pluby on Sat Jan 21, 2012 9:54 am; edited 1 time in total
Back to top
djpimley
The Anomaly
(earlier version)


Joined: Jun 11, 2006
Posts: 481
Location: Great Britain

PostPosted: Sat Jan 21, 2012 5:24 am    Post subject:

Tested with success! The updater opened the web view and downloaded the patch, then mounted the dmg.

A gotcha for other testers: Safari is rather keen on renaming "versionrc" to "versionrc.txt" upon download. If you remove the ".txt" directly in the Finder window, that just hides the extension! You'll need to open up the file's "Get Info" window and remove the extension that way.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Jan 21, 2012 9:56 am    Post subject:

djpimley wrote:
A gotcha for other testers: Safari is rather keen on renaming "versionrc" to "versionrc.txt" upon download. If you remove the ".txt" directly in the Finder window, that just hides the extension! You'll need to open up the file's "Get Info" window and remove the extension that way.


Good catch. I use Firefox so I didn't notice this gotcha.

I went ahead and changed the versionrc download step in my post to use the curl command in a Terminal to avoid this Safari problem.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sun Jan 22, 2012 10:31 pm    Post subject:

I also had success on 10.5.8.

A couple of minor and really minor UI notes, some (most?) that are forward-looking than strictly applicable now:

* The "Check for updates" window still says
Quote:
The automatic download of the update is currently not available.

Click 'Download...' to download NeoOffice 3.2.1 Patch 3 manually from the web site.

At some point in the process, that text will need to be updated Wink

* I know at this point you're essentially reusing the NeoMobile window code. Since patches are significantly larger downloads than most NeoMobile documents, I think a progress bar would be more helpful than a spinner and updating text.

* The floating window remains, and shows the same content, after the .dmg is downloaded and mounted. At some point, it would probably be better to either make the window close once the download is complete, or to show new content like "Download succeeded; now do X, Y, and Z to install."

* The .dmg seems to be mounted in the background, and, in my case, the window ends up behind the floating window and the OOo-code's update window, so it's not completely apparent that it's mounted. Long-term this won't matter, and it may not really matter short-term, either, but I wanted to mention it.

At any rate, this is a great step forward Smile

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Jan 23, 2012 9:15 am    Post subject:

sardisson wrote:
I also had success on 10.5.8.

A couple of minor and really minor UI notes, some (most?) that are forward-looking than strictly applicable now:


All of your points are good ones. I myself think the current state is very unwieldy as all that I have really done is just move the steps that were in a web browser into NeoOffice so the whole flow will need to be tweaked and smoothed out in several places before this is ready for release. In other works, I'm using the "make it work reliably first, then make it look good" approach.

Before I get to that the tweaking and smoothing stage, I want to make sure that the download portion is rock solid. Like Safari, Apple's WebKit code that we use for the floating window does not detect truncated downloads so right now, I only have NeoOffice Mobile's "if truncated, retry new download" which, given the large sizes of the patch and installer files is not adequately.

So, right now I am working on implementing automatic resuming of the download using libcurl which is already included in NeoOffice's underlying OpenOffice.org code. Only if there is an error that indicates resumable downloads are not supported (e.g. you have a proxy or ISP that is messing with web connections), I will pass WebKit's cookies to libcurl and complete download using libcurl. Note: Apple's NSURLDownload class supports resumable downloads, but not after WebKit thinks a truncated download is complete. Hence, the use of libcurl if we detect any download failure.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Mon Jan 23, 2012 12:35 pm    Post subject:

pluby wrote:
In other works, I'm using the "make it work reliably first, then make it look good" approach.

I figured as much Smile

pluby wrote:
So, right now I am working on implementing automatic resuming of the download using libcurl which is already included in NeoOffice's underlying OpenOffice.org code.

Yay Smile

pluby wrote:
Note: Apple's NSURLDownload class supports resumable downloads, but not after WebKit thinks a truncated download is complete.

Yay NSURLDownload Razz

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Jan 24, 2012 12:58 pm    Post subject:

I have added 2 small changes to the new patch download window that I added in the last test patch:

1. Multiple downloads of the same file from different mirrors will no longer create extra files with "-1", "-2", etc. in their names. Instead, my code checks in the target file name is in process of being downloaded or has already been successfully downloaded. If either condition is true, no duplicate bits are downloaded.

2. I added a progress bar that appears when downloading and added the number of megabytes downloaded in the status area at the bottom of the window so that users can see the download progress.

Edit by pluby: Added screen snapshot of the new download progress bar at the end of this post

Like the last test patch, to test out my latest changes you will need to do the following steps:

1. Download and install the following test patch:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.2.1-Patch-3-Test-2-Intel.dmg

2. Download the following "versionrc" file to your Desktop by pasting the following command in a Terminal window and pressing the Return key. This file will be used to fool NeoOffice to act as if you have not installed the latest official patch:

Code:
cd ~/Desktop ; curl -O http://joe.neooffice.org/test/versionrc


3. In the Finder, right-click or Control-click on the NeoOffice application and in the popup menu that appears, select the "Show Package Contents". Then, navigation into NeoOffice's "Contents/MacOS" subfolder. Drag the "versionrc" file that you downloaded into step 2 into this subfolder. You will be prompted to replace the file and then to authenticate that you are a Mac OS X administrator.

4. If step 3 succeeds, select NeoOffice's Help :: Check for Updates menu. the dialog that appears should say that NeoOffice 3.2.1 Patch 3 is available. Press the Download button and you should see the patch download page running in a floating window similar to the NeoOffice Mobile floating window and the patch should be automatically downloaded to your Downloads folder.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue Jan 24, 2012 3:29 pm    Post subject:

pluby wrote:
2. I added a progress bar that appears when downloading and added the number of megabytes downloaded in the status area at the bottom of the window so that users can see the download progress.

Edit by pluby: Added screen snapshot of the new download progress bar at the end of this post


This looks good, although I think the spinner should go away when the progress bar is showing (the spinner's great for indeterminate operations, like connecting to NeoMobile and so forth, but it's busy/redundant when you also have the superior-for-determinate-operations progress bar).

I successfully downloaded the new patch again and opened a document via NeoMobile on 10.5.8

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice New Feature Requests All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.