[prev in list] [next in list] [prev in thread] [next in thread] 

List:       calligra-devel
Subject:    Re: Issues on OS X: about the kde4_add_plugin macro, and shared vs. module building
From:       René_J.V. Bertin <rjvbertin () gmail ! com>
Date:       2015-03-09 20:29:49
Message-ID: 1921044.RBHssH2qiU () portia ! local
[Download RAW message or body]

On Monday March 09 2015 10:00:25 Boudewijn Rempt wrote:

Hi Boudewijn,

> That should have been fixed with this hack:
> 
> // Filthy hack alert -- this'll be properly fixed in the mvc branch.
> if (qApp->applicationName() == "flow" && vec.size() == 2) {
> return KoDocumentEntry(vec[1]);
> }
> 
> In KoDocumentEntry, and it works okay on Linux. I wonder -- what's flow's 
> applicationName() on OSX? If that's different, then that's the reason.

Well, should have, maybe, but clearly not. See below for traces with a qDebug() to print \
applicationName() in queryByMimeType. It seems that on OS X I'd have to replace "flow" with \
"karbon" in the hack above. Flow still has issues opening svg and pdf documents in that case \
("could not create the output document"; haven't tried other formats other than self-generated \
odg docs) but maybe it only handles very specific types of such documents?


R.


%> /Applications/MacPorts/KDE4/Calligra-Suite/karbon.app/Contents/MacOS/karbon
karbon(724)/koffice (lib komain) KoDocumentEntry::query: KoDocumentEntry::query  \
"application/vnd.oasis.opendocument.graphics"  got  2  offers!  "Calligra Flowchart & Diagram \
Editing Component"  "Calligra Scalable Graphics Component" 
queryByMimeType qApp->applicationName()== "karbon" 
karbon(724)/koffice (lib komain) KoDocumentEntry::query: KoDocumentEntry::query  \
"application/vnd.oasis.opendocument.graphics"  got  2  offers!  "Calligra Flowchart & Diagram \
Editing Component"  "Calligra Scalable Graphics Component" 
@@@ queryByMimeType qApp->applicationName()== "karbon" 
2015-03-09 20:56:37.100 karbon[724:303] modalSession has been exited prematurely - check for a \
reentrant call to endModalSession: %> \
/Applications/MacPorts/KDE4/Calligra-Suite/calligraflow.app/Contents/MacOS/calligraflow \
flow(858)/koffice (lib komain) KoDocumentEntry::query: KoDocumentEntry::query  \
"application/vnd.oasis.opendocument.graphics"  got  2  offers!  "Calligra Flowchart & Diagram \
Editing Component"  "Calligra Scalable Graphics Component" 
queryByMimeType qApp->applicationName()== "flow" 
flow(858)/koffice (lib komain) KoDocumentEntry::query: KoDocumentEntry::query  \
"application/vnd.oasis.opendocument.graphics"  got  2  offers!  "Calligra Flowchart & Diagram \
Editing Component"  "Calligra Scalable Graphics Component" 
@@@ queryByMimeType qApp->applicationName()== "flow" 
flow(858)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a \
KActionCollection containing actions! 

** (process:858): WARNING **: 1 dictionaries weren't free'd.

_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic