working towards Subsurface 2.0

Dirk Hohndel dirk at hohndel.org
Fri Sep 7 16:09:43 PDT 2012


Henrik Brautaset Aronsen <subsurface at henrik.synth.no> writes:

> Den 07.09.12 15:50, skrev Dirk Hohndel:
>> On Sep 7, 2012, at 6:45 AM, Henrik Brautaset Aronsen wrote:
>>
>>> Den 07.09.12 15:42, skrev Dirk Hohndel:
>>>> On Sep 6, 2012, at 11:00 PM, Henrik Brautaset Aronsen wrote:
>>>>
>>>>> * Have one default dive.xml fault that is automatically opened on launch (and saved on exit).   It's cumbersome to always have to open the right xml after starting the app.
>>>> And where in the filesystem would that file be located? It's easy enough to say "divelist.xml" is the default filename (or we can argue if subsurface.xml would be better).
>>>> But at least on Linux the default folder is the much harder choice.
>>> Make the user choose the first time he/she saves, and make that file location available in preferences.  The recent Save/Save As changes should support this.
>> Let's say I add this feature. The next time (so the first time after this was added, or the first time a new user uses the software), if the user explicitly gives a filename, THAT becomes the default filename / location. If no filename is given, the user is asked what to use.
>>
>> That could work.
>
> Perfect.  We could also suggest default file locations for platforms 
> where it's natural.   For e.g. MacOSX it would be ~/Library/Application\ 
> Support/Subsurface/dives.xml.

Let's think about this some more.

User starts Subsurface without any filename arguments

- subsurface looks for the default file name (either as set in
  preferences, or as defined as OS default) and opens it
- when closing subsurface and there are changes, the user asks to
  overwrite that file

User starts Subsurface with one filename

- subsurface opens that file
- when closing it offers to overwrite that file

User starts with more than one filename
- subsurface opens all of those files
- when closing it does... what?
  -- offer to overwrite the first (or last) of the arguments?
  -- offer to write (overwrite???) the default file? (that seems odd)


The preferences could allow the user to set their own default
filename. If the preference hasn't been set, then it is
- ~/Documents/Subsurface/dives.xml on Linux
- %LOCALAPPDATA%/Subsurface/dives.xml  on Windows
- ~/Library/Application Support/Subsurface/dives.xml  on Mac

Comments?

/D


More information about the subsurface mailing list