Nothing to be scared of, it won't do anything. We'd have to change GnuCash to a 
multi-document app for it to make sense to handle the OpenFile notification on 
a running program. 

The problem on startup is that to get the menu on the menubar we can't tell 
LaunchServices that we're ready to start until we've drawn the main window and 
started the event loop, and we currently load the file before we do that, while 
LaunchServices sends the notification after we tell it we're ready. Like many 
things in GnuCash's code, managing the "session" is more complicated than it 
should be and I've not put the effort into untangling it enough to change the 
startup sequence.

Regards,
John Ralls


> On Jul 19, 2019, at 4:25 AM, Michael Hendry <[email protected]> wrote:
> 
>> On 19 Jul 2019, at 09:47, Maf. King <[email protected]> wrote:
>> 
>> On Thursday, 18 July 2019 11:48:37 BST Mary wrote:
>>> Hi, I have just installed GnuCash v3.6 on my MacBook Air. How do I set up 2
>>> companies on GnuCash? I have tried creating new directories (1 and 2) and
>>> launching from them separately but it just loads the same chart of accounts
>>> and data!
>>> Many thanks
>>> 
>>> 
>> 
>> 
>> Hi Mary,
>> there's something weird about GC on MacOS - clicking on a data file doesn't 
>> open that file; GC always resumes with the last used file....
>> 
>> Just File-> open and navigate to the other file.
>> 
>> once you've done that once, you should just be able to go file -> [recent 
>> files 
>> list] to get the data you want...
>> 
>> HTH,
>> Maf.
> 
> Hi, Mary & Maf.
> 
> This happens with other open-source, multi-platform software as well (e.g. 
> LibreOffice, Frescobaldi), and I think must arise from the way in which Mac 
> OS passes the “file-to-open” to the appropriate program when you double-click.
> 
> It’s not an insoluble problem - if I double-click a file whose default 
> program is MacVim, MacVim will start up and open the chosen file - but then 
> MacVim isn’t raw VI.
> 
> I’ve found that if LibreOffice is already running when I double-click one of 
> its files, it will open that file OK, but LibreOffice s expects to have more 
> than one file open at a time, and I haven’t tried double-clicking one GnuCash 
> file when another is already open - too scared of possible side-effects!
> 
> Michael
> 
> _______________________________________________
> gnucash-user mailing list
> [email protected]
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to