File open bug with double-click on os x (was: Re: Help!)
jralls at ceridwen.us
Fri Mar 1 09:47:34 EST 2013
On Mar 1, 2013, at 4:44 AM, Geert Janssens <janssens-geert at telenet.be> wrote:
> (Deliberately spun off this thread to gnucash-devel, but only so for my specific question. Other answers in the thread can remain on gnucash-user).
> Op 01-03-13 13:39, R. Victor Klassen schreef:
>> Correct. Mac OS correctly opens GnuCash when a data file is double-clicked. The bug is that it then proceeds to open the most recently used data file, rather than opening the data file clicked.
>> On 2013-02-28, at 11:39 PM, John Ralls wrote:
>>> On Feb 28, 2013, at 8:16 PM, David <sunfish62 at yahoo.com> wrote:
>>>> The ability to double-click a file and have a specific application load that file is a function of the operating system. If you are using Windows, you can associate .gnucash files with GnuCash, and then double-clicking these files will load them in GnuCash.
>>>> It's not a bug.
>>> No, the "bug" is that that doesn't work on a Mac. Double-clicking a Gnucash file in Finder will open Gnucash, but it will open the last-opened file, not the one that you clicked on.
>>> That's perhaps why Sandie thinks that newer files are overwriting the older ones.
> Just out of curiosity...
> John, is that a bug in gtk or a bug in the gnucash-launcher script ?
Neither. It's a lack of implementation. Finder/LaunchServices sends a "File Open" AppleEvent which is supposed
to be caught by the NSApplicationDelegate built in to GtkosxApplication, which in turn should emit a GObjcet signal
which Gnucash's file open code can handle to open the right file. I haven't written the handler for that signal.
More information about the gnucash-devel