Getting the name of the currently Opened Library

I’m new to Blender script, I tried to search for answers for this in the forum and the web but could’t find it.

I’m trying to get the name of the .Blend Library the user opened through the menu.

Using Library.GetName( ) returns (none). If I load the Library in my script using Library.Open I get the right name, but that’s not what I want.

Probably the Library the user opened was already closed after all objects are moved to the scene, so there is no currently opened Library.
But at least I want to know the name of the last opened library by the user, which Blender shows on its window title (at least on Mac).

Any idea?

Thanks,

Mark_me

So no one knows the answer to this? it should be a straight forward thing, yet I still can’t find it anywhere